Install pip
To install pip, securely download .
Then run the following (which may require administrator access):
python get-pip.py
或通过easy_install 安装
easy_install pip
安装过程如下:
-
[root@zabbiclient2 abc]# curl -O https://raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py
-
[root@zabbiclient2 abc]# which python
-
/usr/bin/python
-
[root@zabbiclient2 abc]# python get-pip.py
-
Collecting pip
-
Downloading pip-6.0.3-py2.py3-none-any.whl (1.3MB)
-
100% |################################| 1.3MB 101kB/s
-
Collecting setuptools
-
Downloading setuptools-10.0.1-py2.py3-none-any.whl (496kB)
-
100% |################################| 499kB 90kB/s
-
Installing collected packages: setuptools, pip
-
-
-
Successfully installed pip-6.0.3 setuptools-10.0.1
-
[root@zabbiclient2 abc]# pip
-
pip pip2 pip2.6
Upgrade pip
On Linux or OS X:pip install -U pip To upgrade an existing , run pip install -U setuptools.
On Fedora: 下安装pip
yum install python-pip -y
阅读(3661) | 评论(0) | 转发(1) |