![](/img/trans.png)
[英]pip install producing “Could not find a version that satisfies the requirement”
[英]Pip install-couldn't find a version that satisfies the requirement
我正在嘗試使用pip安裝一個名為got的軟件包。 但它不斷出現“無法找到滿足要求的版本”的錯誤。
我在網上搜索了解決方案。 有一些解釋說嘗試pip freeze> requirements.txt。 但它仍然是我的黑盒子。
這里有什么問題,我應該怎么做才能安裝包?
謝謝!
此軟件包不包含setup.py
,因此您無法從pip安裝它。
如果是這樣,你可以安裝它: pip install git+https://github.com/Jefferson-Henrique/GetOldTweets-python.git
你的包got
確實不PyPI上。
找不到包時會拋出您的錯誤。
例如:
→ pip install notfoundpackage
Collecting notfoundpackage
Could not find a version that satisfies the requirement notfoundpackage (from versions: )
No matching distribution found for notfoundpackage
但是,因為您知道github鏈接,所以可以使用git克隆存儲庫。
git clone git@github.com:Jefferson-Henrique/GetOldTweets-python.git
cd GetOldTweets-python
python Exporter.py -h
這可能是代理設置問題(在我的情況下)。 如果您位於防火牆后面,請確保設置了正確的代理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.