升级pip时可能会出现运行更新pip的命令后,提示要求己经更新,但实际上查看版本还是没更新成功的情况,特此记录一波。
如下所示,实际版本仍未更新成功。
C:\WINDOWS\system32>pip --version
pip 9.0.1 from c:\users\逝不等琴生\appdata\local\programs\python\python36\lib\site-packages\pip (python 3.6)
C:\WINDOWS\system32>python -m pip install --upgrade pip
Requirement already up-to-date: pip in c:\users\逝不等琴生\appdata\local\programs\python\python36\lib\site-packages (19.2.1)
C:\WINDOWS\system32>pip --version
pip 9.0.1 from c:\users\逝不等琴生\appdata\local\programs\python\python36\lib\site-packages\pip (python 3.6)
C:\WINDOWS\system32>
而且使用 pip install -U pip命令还会报如下错误
C:\WINDOWS\system32>pip install --U pip
Cache entry deserialization failed, entry ignored
Collecting pip
Using cached https://files.pythonhosted.org/packages/5f/25/e52d3f31441505a5f3af41213346e5b6c221c9e086a166f3703d2ddaf94
0/pip-19.2.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 9.0.1
Uninstalling pip-9.0.1:
Exception:
Traceback (most recent call last):
进入相应目录c:\users\逝不等琴生\appdata\local\programs\python\python36\lib\site-packages ,再将pip-19.2.1.dist-info删除后重新执行命令python -m pip install - -upgrade pip 即可。
版本升级成功
永恒荣耀,不灭星辰!eStarPro果然夺得首届世冠杯冠军!