标签:
替换电脑上python中的pip的版本
例子:
下载的文件:pip-8.1.1-py2.py3-none-any.whl
下载地址:https://pypi.python.org/pypi/pip/#downloads
将它下载到:E:\Python27\Lib\site-packages (文件夹下,此文件夹已经包含pip其它版本)
接下来,在命令行的界面上,输入以下指令:
pip install E:\Python27\Lib\site-packages\pip-8.1.1-py2.py3-none-any.whl
运行结果:出现如下结果,则说明替换成功
Processing e:\python27\lib\site-packages\pip-8.1.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
Failed to write executable - trying to use .deleteme logic
Successfully installed pip-8.1.1
pip的文件夹名称变成:pip-8.1.1.dist-info
标签: