Python pip command and pythonpip command
I. Introduction
Pip is a tool for installing and managing Python packages. It is a replacement of easy_install. Distribute is a replacement of setuptools (the Setuptools package is not maintained later), and pip is a replacement of easy_install. The installation of pip requires setuptools or distribute. If you are using Python3.x, you can only use distribute because Python3.x does not support setuptools.
Ii. Installation
# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate# tar -xzvf pip-1.5.4.tar.gz# cd pip-1.5.4# python setup.py install
Iii. Instances
1) view installed software
# pip list
2) view installed software details
# pip show --files SomePackage
3) Search for software packages
pip search "multiprocessing"
4) download the software package
pip install -d directory SomePackage
5) install the software (install a package of a specific version by using ==,>=, <=, >,< to specify a version number)
# pip install SomePackage# pip install 'Markdown<2.0'# pip install 'Markdown>2.0,<2.0.3'
6) check which software needs to be updated
# pip list --outdated
7) upgrade software
# pip install --upgrade SomePackage
8) uninstall the software
# pip uninstall SomePackage
Reference: http://www.aikaiyuan.com/6918.html