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

The method of installing pip in Linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article introduces the method of installing pip in Linux, the content is very detailed, interested friends can use it for reference, I hope it can be helpful to you.

Pip is a Python package management tool, which provides the functions of finding, downloading, installing and uninstalling Python packages.

1. Pip download and installation 1.1 pip download

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

# tar-xzvf pip-1.5.4.tar.gz # cd pip-1.5.4 # python setup.py install II. Pip use details 2.1 pip installation software

# pip install SomePackage [...] Successfully installed SomePackage2.2 pip to view installed software

# 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

# pip list-outdated SomePackage (Current: 1.0 Latest: 2.0) 2.4 pip upgrade software

# pip install-- upgrade SomePackage [...] Found existing installation: SomePackage 1.0Uninstalling SomePackage: Successfully uninstalled SomePackage Running setup.py install for SomePackage Successfully installed SomePackage2.5 pip Uninstall Software

$pip uninstall SomePackage Uninstalling SomePackage: / my/env/lib/pythonx.x/site-packages/somepackage Proceed (yzone)? Y Successfully uninstalled SomePackage III. Pip installs Redis using example 3.1

# pip install redis3.2 Uninstall redis

# 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 redis3.3 to view the software to be updated

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 errors 4.1 ImportError No module named setuptools

Please refer to "ImportError No module named setuptools solution"

Fifth, pip parameter explanation # pip-- help Usage: pip [options] Commands: install installation software. Uninstall uninstalls the software. Freeze outputs a list of installed software in a certain format, list lists the 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, you can use up to 3 times-V,-version real-world version information and then exit. -Q,-- the least output of quiet. -- log-file overrides the verbose error log. The default file: / root/.pip/pip.log-- log does not overwrite the log that records 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. Show details

On Linux installation pip method to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Development

Wechat

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

12
Report