Environmental description
System version: win10 64
python version: 2.7.14
installation steps
1. Install easy_intall
Download https://pypi.python.org/pypi/ez_setup, open the cmd window with the administrator after decompression , switch to the easy_install directory, and then install it through python ez_setup.py
Microsoft Windows [ Version 10.0.15063 ] (c) 2017 Microsoft Corporation. all rights reserved. C:\WINDOWS\system32>cd C:\Users\xiaohu\Downloads\ez_setup-0.9\ez_setup-0.9 C:\Users\xiaohu\Downloads\ez_setup-0.9\ez_setup-0.9>python ez_setup.py Extracting in c:\users\xiaohu\appdata\local\temp\tmprciqrw Now working in c:\users\xiaohu\appdata\local\temp\tmprciqrw\distribute-0.6.14 Installing Distribute Before install bootstrap. Scanning installed packages .......... Installed c:\program files\python27\lib\site-packages\distribute-0.6.14-py2.7.egg Processing dependencies for distribute==0.6.14 Finished processing dependencies for distribute==0.6.14 After install bootstrap. Creating C:\Program Files\Python27\Lib\site-packages\setuptools-0.6c11-py2.7.egg-info Creating C:\Program Files\Python27\Lib\site-packages\setuptools.pth
2. Install pip
Download https://pypi.python.org/pypi/pip , select the tar.gz package, open the cmd window with the administrator after decompression , switch to the pip directory, and then install it through python setup.py install
C:\Users\xiaohu\Downloads\ez_setup-0.9\ez_setup-0.9>cd C:\Users\xiaohu\Downloads\pip-9.0.1\pip-9.0.1 C:\Users\xiaohu\Downloads\pip-9.0.1\pip-9.0.1>python setup.py install C:\Program Files\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) running install install_dir C:\Program Files\Python27\Lib\site-packages\ ....... Installing pip2.exe script to C:\Program Files\Python27\Scripts Installed c:\program files\python27\lib\site-packages\pip-9.0.1-py2.7.egg Processing dependencies for pip==9.0.1 Finished processing dependencies for pip==9.0.1
3. Test
C:\Users\xiaohu\Downloads\pip-9.0.1\pip-9.0.1>pip -V pip 9.0.1 from C:\Program Files\Python27\lib\site-packages\pip-9.0.1-py2.7.egg (python 2.7)
Note: When using cmd, you must open it in administrator mode, otherwise an error will be reported and the installation will fail.