再安装包的时候提示
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip‘ command.
1
2
而我按照要求运行python -m pip install --upgrade pip 后仍然无法成功升级,提示如下:
(venv) D:\Fish>python -m pip install --upgrade pip
Requirement already up-to-date: pip in d:\fish\venv\lib\site-packages (10.0.1)
1
2
于是按照要求将d:\fish\venv\lib\site-packages (10.0.1) 中的pip-10.0.1.dist-info删除,再次运行python -m pip install --upgrade pip 后升级成功,之前不能安装的包也能安装了!
————————————————
版权声明:本文为CSDN博主「cxs123678」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/cxs123678/article/details/80659273
解决'python -m pip install --upgrade pip' 报错问题
原文地址:https://www.cnblogs.com/telwanggs/p/12052920.html
时间: 2024-10-09 11:51:37