【发布时间】:2022-01-24 10:12:46
【问题描述】:
我是一名高中老师,我们正在使用 python 来编写代码。我正在尝试安装 pygame 和 mysql.connector 等软件包,但防火墙阻止我使用 pip...
我收到以下错误消息:
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(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)'))) - skipping
有没有办法绕过防火墙做到这一点?我已经尝试联系我们的 IT 技术人员,但他们无法或不会提供帮助。我们的高年级学生和他们的计算机项目需要这个。
谢谢!!
【问题讨论】:
-
很遗憾看到如此严格的防火墙规则到位,而教育场所实际上阻碍了它自己学生的成功。 :( 我希望你能找到解决问题的方法。我赞扬你努力教你的学生 PyGame
-
您可以尝试将
config --global http.sslVerify false和/或--trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org添加到pip install命令吗? -
我会试一试@flyingteller
-
类似于 FlyingtTeller,我想说。会 this 帮忙。
标签: python ssl pip pygame firewall