200509-python3 Pip install ssl certificate问题

python3.7 通过pip进行安装时,提示ssl certificate问题

如下提示:

1
2
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

解决办法,用国内镜像源

1
pip install aiohttp -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×

bgColor: '#f25648', color: '#ffffff', lowerThan: 'flex' }); });