简体   繁体   English

未能在 pycharm 中安装软件包,并且还使用命令提示符错误“找不到版本”

[英]failed to install packages in pycharm and also using command prompt error “could not find a version”

I am not able to install any packages with Pycharm professional 2019 (Windowns 10, 64bits).我无法使用 Pycharm Professional 2019(Windows 10、64 位)安装任何软件包。

It always generates the same error « Non-zero exit code (1) Could not find a version that satisfies the requirement requests (from versions: ) No matching distribution found for requests .And it also tells to check the pip version installed for Python.它总是产生相同的错误«非零退出代码(1)找不到满足要求请求的版本(来自版本:)没有为请求找到匹配的分布。它还告诉检查为Python安装的pip版本。 My pip version is "pip 19.0.3" with Python-3.7.4我的pip版本是 Python-3.7.4 的“pip 19.0.3”

Below screenshot shows the error which occures within Pycharm [Error in pycharm][1].下面的屏幕截图显示了 Pycharm [pycharm 中的错误][1] 中发生的错误。 Using the [command prompt results in the almost same error][2]使用[命令提示符导致几乎相同的错误][2]

I also tried to change the respository to https://pypi.python.org/pypi but it did not help either.我还尝试将存储库更改为https://pypi.python.org/pypi但它也没有帮助。

I try this.but still getting error我试试这个。但仍然出现错误

C:\>pip --proxy=http://pypi.python.org/simple/ --trusted-host pypi.python.org install requests
Collecting requests
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22A0D88>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1988>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1888>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22CBA08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000022BB22C1DC8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))': /simple/requests/
  Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests 

And also this also这也是

C:\>pip install requests
Collecting requests
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD172C248>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728D08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728C08>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD1728CC8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000025AD17106C8>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /simple/requests/
  Could not find a version that satisfies the requirement requests (from versions: )
No matching distribution found for requests
``````````````````````````



  [1]: https://i.stack.imgur.com/TcgjN.png
  [2]: https://i.stack.imgur.com/haNxX.png

This issue can be due to proxy or firewall settings at your end.此问题可能是由于您端的代理或防火墙设置造成的。 Please check your proxy settings请检查您的代理设置

暂无
暂无

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

相关问题 无法将任何软件包安装到 PyCharm 并给出错误“找不到满足要求的版本” - Unable to install any packages to PyCharm and given error “Could not find a version that satisfies the requirement” 在 Cloud Composer 上添加 PyPI 包 - 无法安装 PyPI 包。 找不到满足要求的版本 - Add PyPI packages on Cloud Composer - Failed to install PyPI packages. Could not find a version that satisfies the requirement Pycharm 安装包失败:安装包:发生错误。 错误 - Pycharm Install packages failed: Installing packages: error occurred. error 无法在 PyCharm 上安装 Tensorflow:“找不到满足 tensorflow 要求的版本(来自版本:无)” - Cannot install Tensorflow on PyCharm: “Could not find a version that satisfies the requirement tensorflow (from versions: none)” 无法使用PyCharm安装多个python软件包 - Unable to install several python packages using PyCharm 使用pip install时出错:“找不到满足要求的版本<package-name> ” - Error when using pip install: “Could not find a version that satisfies the requirement <package-name>” pip 在命令提示符下安装包时出错 - pip error on installing packages on command prompt 在python中安装Imblearn期间找不到版本错误 - Could not find version error during install Imblearn in python 导入错误:在命令提示符下使用scrapy时DLL失败 - Import Error:DLL failed when using scrapy in command prompt 无法在 Pycharm 中安装软件包 - Not able to install packages in Pycharm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM