You are using pip version 10.0.1, however version 20.2.2 is available.


在安裝第三方庫時,出現如下提示:

You are using pip version 10.0.1, however version 20.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

 

 

 然后按照提示升級操作,又提示我已經是最新版本。還提示我添加上--trusted-host mirrors.aliyun.com命令試試

 

 

 其實這樣也解決不了問題。根本原因是在python第三方庫中已經存在了pip-20.2.2.dist-info,而且你會發現pip-10.0.1也存在該目錄。可能是pip20.2.2在安裝時失敗或超時,文件已經存在導致不能正常升級。

刪除pip-20.2.2.*

重新執行命令:python -m pip install --upgrade pip --index-url http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

然后發現正常安裝成功。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM