在使用pip安装python3的第三方包的时候出现了错误。错误如下:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting selenium
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/selenium/
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/selenium/
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/selenium/
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/selenium/
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/selenium/
Could not fetch URL /simple/selenium/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘’, port=443): Max retries exceeded with url: /simple/selenium/ (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 selenium (from versions: )
No matching distribution found for selenium
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL /simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘’, 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
解决的办法:
使用下面的命令的是:(其中的pywinauto是需要安装的包)
pip install pywinauto -i /simple --trusted-host
1)/pypi/simple/ 阿里云
2)https://pypi.mirrors./simple/ 中国科技大学
3) /simple/ 豆瓣
4) https://pypi.tuna./simple/ 清华大学
5) http://pypi.mirrors./simple/ 中国科学技术大学
如果帮到大家,跪求评论点赞走一波。谢谢谢谢。
大功告成。哈哈哈!!!!!!!!!!!
关注公众号,获取更多。