1、问题描述
python 3.7.0,使用pip install出现如下问题:
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
解决方式
卸载python3.7.0,重新安装:
# 比如我使用pyenv管理:
pyenv uninstall 3.7.0
pyenv install 3.7.0
网友评论