[英]ERROR: Could not find a version that satisfies the requirement protos ERROR: No matching distribution found for protos when trying to install protos
[英]how to fix " Could not find a version that satisfies the requirement install (from versions: ) No matching distribution found for install " error
我想將 tweepy 模塊安裝到我的 python 項目中。 我閱讀了文檔以使用命令“pip install tweepy”。 但它在命令提示符中顯示錯誤。
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
編輯-1
我嘗試安裝 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
由於某種原因,您似乎將pip
別名為pip install
命令。
您可能只運行pip tweepy
來實際運行pip install tweepy
,但更好的方法是通過 Python 解釋器運行 pip 。 以這種方式升級 pip也可以潛在地修復混疊。
嘗試了不同的方法,例如pip3 install tweepy
和pip tweepy
就像上面建議的解決方案一樣,但這沒有用。 嘗試升級並重新安裝pip但仍然沒有解決方案。 不得不重新安裝python環境。
嘗試在較低版本的 python 中安裝,即某些庫不立即支持新版本的 python。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.