繁体   English   中英

Pip install-找不到满足要求的版本

[英]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

如果你真的需要一个用于tweeter的python库,那么其他一些库已经存在,比如twython

这可能是代理设置问题(在我的情况下)。 如果您位于防火墙后面,请确保设置了正确的代理。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM