The PIP is a Python package management tool, with a lot of Python open source kits in the PIP library that can be downloaded and installed directly into the Python module while you are using it, as described in the CentOS how to install the PIP in the install.
First, install PIP command
Download PIP installation package:
[Root@web1 xxx]# wget--no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
Unzip the tar pack:
[Root@web1 xxx]# tar-vxf setuptools-1.4.2.tar.gz
Enter the unpack package and run the Install command:
[Root@web1 xxx]# cd setuptools-1.4.2
[root@web1 xxx]# python2.7 setup.py
After the installation is complete, the last mount Pip:
[Root@web1 xxx]# easy_install-2.7 pip
To detect if a successful installation has been installed:
[Root@web1 xxx]# pip--version
pip 1.2 from/usr/local/lib/python2.7/site-packages/pip-1.2-py2.7.egg (Python 2.7)
Two, pip commonly used commands
1, view the use of the PIP Help:
[Root@web1 xxx]# pip help Usage:pip COMMAND [OPTIONS]--version Show program ' s version number and Exit-h,--help show help-v,--verbose give more output-q
,--quiet give less output--log <FILENAME> log file where a complete (maximum
verbosity) record would be kept--proxy <PROXY> Specify a proxy in the form User:passwd@proxy.server:port. The user:password@ is optional and required only if You are are behind an authenticated proxy. If you are provide user@proxy.server:port then you'll be prompte
D for a password.
--timeout <SECONDS> Set The socket timeout (default 15 seconds)--exists-action <EXISTS_ACTION> Default action when a path already Exists. Use the option more than one time to specify another action I f a certain option is not available. Choices: (s) witch, (i) Gnore, (W) Ipe, (b) ackup Commands available:bundle:Create s (archives containing multiple packages) Freeze:output all currently installed (packages exact) to versions H Elp:show available commands Install:install packages Search:search PyPI Uninstall:uninstall packages Unzip:un Zip individual packages Zip:zip individual packages
2. PIP Installation Python pack
[Root@web1 xxx]# pip install installation package name
3. PIP Uninstall installed packages
[Root@web1 xxx]# pip Uninstall package name
4. Other common commands
Freeze: View the Python package already installed
Help:faq view pip help
search:search PyPI
Unzip: Extract a package
zip: Compress an already installed package