【问题标题】:Could not find a version that satisfies the requirement wheel python找不到满足要求轮python的版本
【发布时间】:2020-11-12 10:27:44
【问题描述】:

出现以下错误:

MacBook-Pro:$ pip install wheel
Collecting wheel
  Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement wheel (from versions: )
No matching distribution found for wheel
MacBook-Pro:$ pip install --trusted-host pypi.python.org wheel
Collecting wheel
  Could not fetch URL https://pypi.python.org/simple/wheel/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping
  Could not find a version that satisfies the requirement wheel (from versions: )
No matching distribution found for wheel

试试这个没有运气:

pip issue installing almost any library https://github.com/pypa/pip/issues/5236

使用 MacOs Sierra

MacBook-Pro:$ python -V
Python 2.7.10
MacBook-Pro:$ python -m pip --version
pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)

有什么帮助吗?

【问题讨论】:

    标签: python macos ssl pip


    【解决方案1】:

    这篇文章有助于解决我的问题: https://medium.com/@dipikabh/ssl-certificate-error-using-pip-install-154aa8e014fb

    步骤如下:

    1. 升级前检查 pip 版本(稍后验证更新):
    > MacBook-Pro:~ jane$ pip --version
    
    > pip 9.0.1 from /Library/Python/2.7/site-packages (python 2.7)
    
    1. 下载get-pip.py

    > curl -O https://bootstrap.pypa.io/get-pip.py

    1. 运行以下命令升级 pip:

    > MacBook-Pro:~ jane$ sudo python get-pip.py

    1. 验证 pip 的版本:
    > MacBook-Pro:~ jane$ pip --version
    > pip 20.1.1 from /Library/Python/2.7/site-packages (python 2.7)
    

    【讨论】:

      猜你喜欢
      • 2021-01-04
      • 2017-12-30
      • 2020-05-15
      • 2018-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 2021-12-25
      相关资源
      最近更新 更多