问答

python 中pip3 下载总是出现ssl 报错

作者:admin 2021-05-05 我要评论

root@center1:~/Python-3.7.4# pip3 install protobufpip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)
root@center1:~/Python-3.7.4# pip3 install protobuf
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting protobuf
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Could not fetch URL https://pypi.org/simple/protobuf/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/protobuf/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement protobuf (from versions: )
No matching distribution found for protobuf
You are using pip version 19.0.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@center1:~/Python-3.7.4# pip3 install requests
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

root@center1:~/Python-3.7.4# pip3 install protobuf
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting protobuf
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/protobuf/
  Could not fetch URL https://pypi.org/simple/protobuf/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/protobuf/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement protobuf (from versions: )
No matching distribution found for protobuf
You are using pip version 19.0.3, however version 21.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
root@center1:~/Python-3.7.4# pip3 install requests
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available

这是openssl 版本
root@center1:~/Python-3.7.4# openssl version
OpenSSL 1.1.1a 20 Nov 2018

root@center1:~/Python-3.7.4# python3
Python 3.7.4 (default, Feb 2 2021, 11:57:56)
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.

import ssl
ssl 引入没问题

求问为啥下载有问题?

###

which python3看看这个python3和pip用的python是不是同一个

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • python 中pip3 下载总是出现ssl 报错

    python 中pip3 下载总是出现ssl 报错

  • 关于ts中接口的value如何继承

    关于ts中接口的value如何继承

  • 这张图说的几种虚拟化方式是什么不同?

    这张图说的几种虚拟化方式是什么不同?

  • mysql索引问题

    mysql索引问题

腾讯云代理商
海外云服务器