python3.7、python3.8安装, 解决pip is configured with locations that require TLS/SSL问题

问题:

[root@localhost bin]# pip3 install mysqll
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting mysqll
  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/mysqll/
  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/mysqll/
  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/mysqll/
  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/mysqll/
  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/mysqll/
  Could not fetch URL https://pypi.org/simple/mysqll/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/mysqll/ (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 mysqll (from versions: )
No matching distribution found for mysqll
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

百度上面一大堆,全是抄袭,浪费时间!!!!

这个问题是因为openssl的版本太低了!!!

还是看这位大神的吧,他的是3.7遇到的问题,我是在3.8遇到的问题,但是都解决了。

https://www.cnblogs.com/jasonLiu2018/articles/10730605.html

你可能感兴趣的:(python)