使用pip报错:Could not fetch URL https:pypi.orgsimpleselenium: There was a problem confirming the ss

it2023-09-10  69

在使用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 https://pypi.org/simple/selenium/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, 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 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 解决的办法: 使用下面的命令的是:(其中的pywinauto是需要安装的包)

pip install pywinauto -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

1)http://mirrors.aliyun.com/pypi/simple/ 阿里云 2)https://pypi.mirrors.ustc.edu.cn/simple/ 中国科技大学 3) http://pypi.douban.com/simple/ 豆瓣 4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清华大学 5) http://pypi.mirrors.ustc.edu.cn/simple/ 中国科学技术大学

如果帮到大家,跪求评论点赞走一波。谢谢谢谢。 大功告成。哈哈哈!!!!!!!!!!!

关注公众号,获取更多。

最新回复(0)