如何安装 easy installer+pip

  • Post author:
  • Post category:其他


1、首先去https://pypi.python.org/pypi/setuptools下载到最新的setuptools压缩包,比如:setuptools-11.3.zip。

2、然后解压到某一个文件目录下。

3、然后用如下命令做安装。

python setup.py install。

4、安装完成后,在C:\Python27\Lib\site-packages的目录下出现了,类似于:setuptools-11.3-py2.7.egg文件,表示安装成功。

5、然后继续安装pip,看如下的安装命令的安装过程就可以了。

看到最后一行是:




Finished processing dependencies for pip




表示安装成功了。

c:\Python27\Scripts>easy_install.exe pip

Searching for pip

Reading https://pypi.python.org/simple/pip/

C:\Python27\lib\site-packages\setuptools-11.3-py2.7.egg\pkg_resources\__init__.p

y:2510: PEP440Warning: ‘pip (dev)’ is being parsed as a legacy, non PEP 440, ver

sion. You may find odd behavior and sort order. In particular it will be sorted

as less than 0.0. It is recommend to migrate to PEP 440 compatible versions.

Best match: pip 6.0.6

Downloading https://pypi.python.org/packages/source/p/pip/pip-6.0.6.tar.gz#md5=b

bb17814bdf82187f46aaf9cec6b6caa

Processing pip-6.0.6.tar.gz

Writing c:\users\wuxiao~1\appdata\local\temp\easy_install-ey6upa\pip-6.0.6\setup

.cfg

Running pip-6.0.6\setup.py -q bdist_egg –dist-dir c:\users\wuxiao~1\appdata\loc

al\temp\easy_install-ey6upa\pip-6.0.6\egg-dist-tmp-0ienuj

warning: no previously-included files found matching ‘.coveragerc’

warning: no previously-included files found matching ‘.mailmap’

warning: no previously-included files found matching ‘.travis.yml’

warning: no previously-included files found matching ‘pip\_vendor\Makefile’

warning: no previously-included files found matching ‘tox.ini’

warning: no previously-included files found matching ‘dev-requirements.txt’

no previously-included directories found matching ‘.travis’

no previously-included directories found matching ‘docs\_build’

no previously-included directories found matching ‘contrib’

no previously-included directories found matching ‘tasks’

no previously-included directories found matching ‘tests’

creating c:\python27\lib\site-packages\pip-6.0.6-py2.7.egg

Extracting pip-6.0.6-py2.7.egg to c:\python27\lib\site-packages

Adding pip 6.0.6 to easy-install.pth file

Installing pip-script.py script to C:\Python27\Scripts

Installing pip.exe script to C:\Python27\Scripts

Installing pip.exe.manifest script to C:\Python27\Scripts

Installing pip2.7-script.py script to C:\Python27\Scripts

Installing pip2.7.exe script to C:\Python27\Scripts

Installing pip2.7.exe.manifest script to C:\Python27\Scripts

Installing pip2-script.py script to C:\Python27\Scripts

Installing pip2.exe script to C:\Python27\Scripts

Installing pip2.exe.manifest script to C:\Python27\Scripts

Installed c:\python27\lib\site-packages\pip-6.0.6-py2.7.egg

Processing dependencies for pip





Finished processing dependencies for pip






版权声明:本文为wuxiaobingandbob原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。