【问题标题】:Pip install-couldn't find a version that satisfies the requirementpip install - 找不到满足要求的版本
【发布时间】:2016-12-18 14:37:04
【问题描述】:

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

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

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

谢谢!

【问题讨论】:

  • 您要安装this吗?看起来它可能已经不存在了。
  • 你确定他们把它放在pypi中吗?我找不到它。我不认为这是您安装的库。
  • 它可能不在 pypi 中,就像 Morgan Thrapp 问你的那样。

标签: python package installation pip


【解决方案1】:

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

如果是这样,您可以通过以下方式安装它: pip install git+https://github.com/Jefferson-Henrique/GetOldTweets-python.git

【讨论】:

    【解决方案2】:

    你的包 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
    

    如果你真的需要一个用于高音扬声器的 python 库,那么其他一些库已经存在,例如 twython

    【讨论】:

    • twythontweepy 都不错,但它们都使用 Twitter API,因此不幸的是,它们在各种使用方面都非常有限。使用got,您可以获得非常古老的推文,并且您可以同时获得更多推文。
    【解决方案3】:

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

    【讨论】:

      猜你喜欢
      • 2020-10-21
      • 2021-12-25
      • 2019-01-06
      • 2015-10-13
      • 2023-03-12
      • 1970-01-01
      • 2019-09-14
      • 1970-01-01
      • 2018-02-22
      相关资源
      最近更新 更多