首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到满足需求轮python的版本。

找不到满足需求轮python的版本。
EN

Stack Overflow用户
提问于 2020-07-22 19:20:10
回答 1查看 1.9K关注 0票数 0

出现以下错误:

代码语言:javascript
复制
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塞拉利昂

代码语言:javascript
复制
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)

在这方面有什么帮助吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-23 18:47:53

本文帮助解决了我的问题:https://medium.com/@dipikabh/ssl-certificate-error-using-pip-install-154aa8e014fb

在此提到的步骤如下:

  1. 在升级之前检查pip版本(稍后要验证更新):

代码语言:javascript
复制
> 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:

的版本

代码语言:javascript
复制
> MacBook-Pro:~ jane$ pip --version
> pip 20.1.1 from /Library/Python/2.7/site-packages (python 2.7)
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63041658

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档