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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38903415/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 21:36:36  来源:igfitidea点击:

Pip install-couldn't find a version that satisfies the requirement

pythonpackageinstallpip

提问by Miya Wang

I am trying to install a package called gotusing pip. But it keeps showing up errors of 'couldn't find a version that satisfies the requirement".

我正在尝试使用 pip安装一个名为got的包。但它一直显示“找不到满足要求的版本”的错误。

error

错误

I've searched online about the solutions. There are some explanation saying to try pip freeze > requirements.txt. But it still remains a blackbox to me.

我已经在网上搜索了有关解决方案的信息。有一些解释说尝试 pip freeze > requirements.txt。但它对我来说仍然是一个黑匣子。

What is the problem here and what should I do exactly to install the package?

这里有什么问题,我应该怎么做才能安装软件包?

Thanks!

谢谢!

采纳答案by Kruup?s

Your package gotis indeed not on Pypi.

你的包got确实不在 Pypi 上。

Your error is thrown when no package have been found.

当没有找到包时,你的错误会被抛出。

eg:

例如:

→ pip install notfoundpackage
Collecting notfoundpackage
  Could not find a version that satisfies the requirement notfoundpackage (from versions: )
No matching distribution found for notfoundpackage

Though, because you know the github link, you can clone the repository using git.

但是,因为您知道 github 链接,所以您可以使用 git 克隆存储库。

git clone [email protected]:Jefferson-Henrique/GetOldTweets-python.git
cd GetOldTweets-python
python Exporter.py -h

If you really need a python library for tweeter, some other library already exist, like twython.

如果您真的需要一个用于推特的 Python 库,那么已经存在一些其他库,例如twython

回答by David Cox

This package doesn't include a setup.py, so you can't install it from pip.

此软件包不包含setup.py,因此您无法从 pip 安装它。

If it did, you could install it with: pip install git+https://github.com/Jefferson-Henrique/GetOldTweets-python.git

如果是这样,您可以使用以下命令安装它: pip install git+https://github.com/Jefferson-Henrique/GetOldTweets-python.git

回答by Lothar

This could be a proxy setting issue (it was in my case). Ensure that you have correct proxies set, if you are behind a firewall.

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