1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 使用pip报错:Could not fetch URL https://pypi.org/simple/selenium/: There was a problem confirming the ss

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

时间:2023-02-06 04:13:58

相关推荐

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

在使用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/ 中国科学技术大学

如果帮到大家,跪求评论点赞走一波。谢谢谢谢。

大功告成。哈哈哈!!!!!!!!!!!

关注公众号,获取更多。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。