简体   繁体   English

如何修复“找不到满足安装要求的版本(来自版本:)找不到安装的匹配发行版”错误

[英]how to fix " Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install " error

I want to install tweepy module to my python project.我想将 tweepy 模块安装到我的 python 项目中。 I read in documentation to use command "pip install tweepy".我阅读了文档以使用命令“pip install tweepy”。 But it shows up an error in command prompt.但它在命令提示符中显示错误。

C:\Python36>pip install tweepy
Collecting install
  Could not find a version that satisfies the requirement install (from versions: )
No matching distribution found for install

Edit-1编辑-1

I tried to install python-twitter module and the same error shows up.我尝试安装 python-twitter 模块并出现相同的错误。

C:\Python36>pip install python-twitter -v
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Collecting install
  1 location(s) to search for versions of install:
  * https://pypi.python.org/simple/install/
  Getting page https://pypi.python.org/simple/install/
  Looking up "https://pypi.python.org/simple/install/" in the cache
  Returning cached "301 Moved Permanently" response (ignoring date and etag information)
  Looking up "https://pypi.org/simple/install/" in the cache
  Current age based on date: 345
  Freshness lifetime from max-age: 600
  Freshness lifetime from request max-age: 600
  The response is "fresh", returning cached response
  600 > 345
  Analyzing links from page https://pypi.org/simple/install/
  Could not find a version that satisfies the requirement install (from versions: )
Cleaning up...
No matching distribution found for install
Exception information:
Traceback (most recent call last):
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\commands\install.py", line 335, in run
    wb.build(autobuilding=True)
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\req\req_set.py", line 554, in _prepare_file
    require_hashes
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\req\req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "C:\Users\MOJO-J~1\AppData\Local\Temp\tmplke7w3ae\pip.zip\pip\index.py", line 514, in find_requirement
    'No matching distribution found for %s' % req
pip.exceptions.DistributionNotFound: No matching distribution found for install

It seems that you have pip aliased to the pip install command for some reason.由于某种原因,您似乎将pip别名为pip install命令。
You could probably just run pip tweepy to actually run pip install tweepy , but the better method would be to run pip via the Python interpreter .您可能只运行pip tweepy来实际运行pip install tweepy ,但更好的方法是通过 Python 解释器运行 pip Upgrading pip this way could also potenitally fix the aliasing.这种方式升级 pip也可以潜在地修复混叠。

Tried different ways like pip3 install tweepy and pip tweepy like the solution advised above but that didn't work.尝试了不同的方法,例如pip3 install tweepypip tweepy就像上面建议的解决方案一样,但这没有用。 Tried upgrading and reinstalling pip but still no solution.尝试升级并重新安装pip但仍然没有解决方案。 Had to do a whole reinstallation of python environment.不得不重新安装python环境。

尝试在较低版本的 python 中安装,即某些库不立即支持新版本的 python。

暂无
暂无

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

相关问题 错误:找不到满足 protos 要求的版本错误:尝试安装 protos 时未找到 protos 的匹配分发 - ERROR: Could not find a version that satisfies the requirement protos ERROR: No matching distribution found for protos when trying to install protos 错误:找不到满足 mathplotlib 要求的版本(来自版本:无)错误:找不到 mathplotlib 的匹配分布 - ERROR: Could not find a version that satisfies the requirement mathplotlib (from versions: none) ERROR: No matching distribution found for mathplotlib 错误:找不到满足要求的版本 os(来自版本:无) 错误:找不到匹配的发行版 os - ERROR: Could not find a version that satisfies the requirement os (from versions: none) ERROR: No matching distribution found for os 错误:找不到满足 tensorflow 要求的版本(来自版本:无)错误:没有找到 tensorflow 的匹配分布) - ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none) ERROR: No matching distribution found for tensorflow) 错误:找不到满足火炬要求的版本(来自版本:无)错误:找不到火炬的匹配分布 - ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch 错误:找不到满足熊猫要求的版本(来自版本:)找不到与熊猫匹配的发行版 - ERROR : Could not find a version that satisfies the requirement pandas (from versions: ) No matching distribution found for pandas 错误:找不到匹配的发行版和错误:找不到满足要求的版本 - ERROR: No matching distribution found and ERROR: Could not find a version that satisfies the requirement 错误:无法从版本中找到满足 Django==1.10.5 要求的版本:无错误:未找到匹配的发行版 Django==1.10.5 - ERROR: Could not find a version that satisfies the requirement Django==1.10.5 from versions: none ERROR: No matching distribution found Django==1.10.5 错误:找不到满足要求 cv2 的版本(来自版本:无)错误:找不到 cv2 的匹配分发 - ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2 错误:找不到满足 chatbot_demo_rest 要求的版本(来自版本:无)错误:找不到匹配的分发版 - ERROR: Could not find a version that satisfies the requirement chatbot_demo_rest (from versions: none) ERROR: No matching distribution found for
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM