python -m pip install --upgrade pip
python3.5 升级 pip-9.0.3报错
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.
看版本
pip -V
pip 9.0.1 from f:\python\lib\site-packages\pip-9.0.1-py3.5.egg (python 3.5)
当你执行python -m pip install --upgrade pip
他会告诉你 Requirement already up-to-date: pip in f:\python\lib\site-packages
再看版
pip -V
pip 9.0.1 from f:\python\lib\site-packages\pip-9.0.1-py3.5.egg (python 3.5)
为什么还是pip 9.0.1呢
解决办法:
找到 f:\python\lib\site-packages 删除pip-9.0.3.dist-info
然后再更新 (使用管理员身份)
python -m pip install --upgrade pip
C:\WINDOWS\system32>pip -V
pip 9.0.3 from f:\python\lib\site-packages (python 3.5)
如果不行 就使用whl安装
pip install .\pip-9.0.3-py2.py3-none-any.whl