解決 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