解決 ERROR: Could not find a version that satisfies the requirement xxx 的問題


解決 ERROR: Could not find a version that satisfies the requirement xxx 的問題

1.解決 ERROR: Could not find a version that satisfies the requirement xxx 的問題

我們經常通過pip安裝東西時常常會出現ERROR: Could not find a version that satisfies the requirement xxx的問題。該問題常常會誤導我們認為是下載的安裝包之間存在沖突,因而花費大量的時間去配置各種各樣的環境。

  • 其實出現這個問題的原因是python國內網絡不穩定,直接導致報錯。因此我們常用鏡像源來解決此問題。如下
pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

image


免責聲明!

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



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