Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install pip source in linux system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install piping source in linux system. I think it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.

What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.

1. Download and install pip

1.1 pip download

# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb"-- no-check-certificate

1.2 pip installation

one

two

three

# tar-xzvf pip-1.5.4.tar.gz

# cd pip-1.5.4

# python setup.py install

II. Detailed explanation of pip use

2.1 pip installation software

one

two

three

# pip install SomePackage

[...]

Successfully installed SomePackage

2.2 pip to view installed software

one

two

three

four

five

six

seven

# pip show-files SomePackage

Name: SomePackage

Version: 1.0

Location: / my/env/lib/pythonx.x/site-packages

Files:

.. / somepackage/__init__.py

[...]

2.3 pip checks which software needs to be updated

one

two

# pip list-outdated

SomePackage (Current: 1.0 Latest: 2.0)

2.4 pip upgrade softwar

one

two

three

four

five

six

seven

# pip install-upgrade SomePackage

[...]

Found existing installation: SomePackage 1.0

Uninstalling SomePackage:

Successfully uninstalled SomePackage

Running setup.py install for SomePackage

Successfully installed SomePackage

2.5 pip Uninstall Software

two

three

four

five

$pip uninstall SomePackage

Uninstalling SomePackage:

/ my/env/lib/pythonx.x/site-packages/somepackage

Proceed (YBO)? Y

Successfully uninstalled SomePackage

III. Examples of pip usage

3.1 install Redis

# pip install redis

3.2 Uninstall redis

two

three

four

five

six

# pip uninstall redis

Uninstalling redis:

/ usr/lib/python2.6/site-packages/redis-2.9.1-py2.6.egg-info

. Omit some content.

Proceed (YBO)? Y

Successfully uninstalled redis

3.3 View the software to be updated

two

three

four

Pip list-outdate

Pygpgme (Current: 0.1 Latest: 0.3)

Pycurl (Current: 7.19.0 Latest: 7.19.3.1)

Iniparse (Current: 0.3.1 Latest: 0.4)

IV. Common mistakes

4.1 ImportError No module named setuptools

Please refer to "ImportError No module named setuptools solution"

5. Interpretation of pip parameters

two

three

four

five

six

seven

eight

nine

ten

eleven

twelve

thirteen

fourteen

fifteen

sixteen

seventeen

eighteen

nineteen

twenty

twenty-one

twenty-two

twenty-three

twenty-four

twenty-five

twenty-six

twenty-seven

twenty-eight

twenty-nine

# pip-help

Usage:

Pip [options]

Commands:

Install installs the software.

Uninstall uninstalls the software.

Freeze outputs a list of installed software in a certain format

List lists installed software.

Show displays software details.

Search search software, similar to search in yum.

Wheel Build wheels from your requirements.

Zip does not recommend it. Zip individual packages.

Unzip does not recommend it. Unzip individual packages.

Bundle does not recommend it. Create pybundles.

Help current help.

General Options:

-h,-- help shows help.

-v,-- verbose more output, can be used up to 3 times

-V,-- version reality version information and then exit.

-Q,-- the least output of quiet.

-- verbose error log is recorded by log-file overrides. Default file: / root/.pip/pip.log

-- log does not overwrite logs that record verbose output.

Proxy Specify a proxy in the form [user:passwd@] proxy.server:port.

-- timeout connection timeout (default 15 seconds).

Exists-action Default action when a path already exists: (s) witch, (I) gnore, (w) ipe, (b) ackup.

-- cert certificate.

The above is how to install the piping source in the linux system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report