Pip SSL Error on Windows

前端 未结 6 901
萌比男神i
萌比男神i 2020-12-15 14:02

I use Python 3.x on Windows 7 64 bit in an environment without full control of inbound/outbound traffic processing. Up till this week I\'ve been able to use the --trus

6条回答
  •  难免孤独
    2020-12-15 14:52

    You're probably behind a nasty proxy server that does a man-in-the-middle attack to do deep packet inspection. You need to obtain the CA certificate file from your proxy admin in order to tell Python that everything is OK. You could also extract this from your web browser or anything else that is configured to work with the proxy.

    When you have obtained the certificate, you can either add it to the cacert.pem file of the certifi package, or tell pip about it directly with the --cert option, or global.cert in the pip.conf file.

提交回复
热议问题