1. 程式人生 > >25- 解決'python -m pip install --upgrade pip' 報錯問題

25- 解決'python -m pip install --upgrade pip' 報錯問題

轉載於:https://blog.csdn.net/cxs123678/article/details/80659273

 

再安裝包的時候提示

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 後升級成功,之前不能安裝的包也能安裝了!