安装pip

cyper实战(就两行命令)

win7

git bash here

curl -o https://bootstrap.pypa.io/get-pip.py
python get-pip.py

然后把C:\Python27\Scripts加入环境变更就可以直接使用pip命令了

测试
C:\Users\IBM_ADMIN>pip -V
pip 1.5.6 from c:\Python27\lib\site-packages (python 2.7)
以下是参考/转载部分

https://pip.pypa.io/en/latest/installing.html

Python & OS Support

pip works with CPython versions 2.6, 2.7, 3.1, 3.2, 3.3, 3.4 and also pypy.

pip works on Unix/Linux, OS X, and Windows.

Note

Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1.

Install pip

To install or upgrade pip, securely download get-pip.py. [1]

Then run the following (which may require administrator access):

python get-pip.py

If setuptools (or distribute) is not already installed,get-pip.pywill install setuptools for you. [2]

To upgrade an existing setuptools (or distribute), runpip install -U setuptools[3]

To enable the use of pip from the command line, ensure theScriptssubdirectory of your Python installation is available on the system PATH. (This is not done automatically.)

Upgrade pip

On Linux or OS X:

pip install -U pip

On Windows [4]:

python -m pip install -U pip

Using Package Managers

On Linux, pip will generally be available for the system install of python using the system package manager, although often the latest version will be unavailable.

On Debian and Ubuntu:

sudo apt-get install python-pip

On Fedora:

sudo yum install python-pip
[1] “Secure” in this context means using a modern browser or a tool likecurlthat verifies SSL certificates when downloading from https URLs.
[2] Beginning with pip v1.5.1,get-pip.pystopped requiring setuptools to be installed first.
[3] Although usingpip install --upgrade setuptoolsto upgrade from distribute to setuptools works in isolation, it’s possible to get “ImportError: No module named setuptools” when using pip<1.4 to upgrade a package that depends on setuptools or distribute. See here for details.
[4] https://github.com/pypa/pip/issues/1299

你可能感兴趣的:(安装pip)