1、pip下载安装
1.1 pip下载
# wget “https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb” –no-check-certificate
# wget “https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb” –no-check-certificate
1.2 pip安装
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install
Commands:
install 安装包.
uninstall 卸载包.
freeze 按着一定格式输出已安装包列表
list 列出已安装包.
show 显示包详细信息.
search 搜索包,类似yum里的search.
wheel Build wheels from your requirements.
zip 不推荐. Zip individual packages.
unzip 不推荐. Unzip individual packages.
bundle 不推荐. Create pybundles.
help 当前帮助.
General Options:
-h, –help 显示帮助.
-v, –verbose 更多的输出,最多可以使用3次
-V, –version 现实版本信息然后退出.
-q, –quiet 最少的输出.
–log-file
--log
--proxy
--timeout
--exists-action
--cert
#install pip3 for python 3.x
pip3 install –upgrade pip
2 Collecting pip
3 Downloading pip-9.0.1-py2.py3-none-any.whl (1.3MB)
4 100% |████████████████████████████████| 1.3MB 3.2kB/s
5 Installing collected packages: pip
6 Found existing installation: pip 8.1.1
7 Uninstalling pip-8.1.1:
8 Successfully uninstalled pip-8.1.1
9 Successfully installed pip-9.0.1