Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make pip use https to get to packages?

Tags:

pip

I am using Python behind a firewall, where certain resources and URLs are blocked, but I can access them with https.

When I try install a package with pip, it complains about a bad MD5 hash, because what it is actually retrieving is the proxy server's denial page.

How can I get pip to use https?

like image 689
mydoghasworms Avatar asked Mar 20 '26 17:03

mydoghasworms


1 Answers

OK, it turns out I am using pip 1.1. As limelights points out in his comment, https is enabled by default since 1.3.

like image 64
mydoghasworms Avatar answered Mar 25 '26 00:03

mydoghasworms



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!