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是不是同一个