How to fix "unknown url type: https" error in easy_install

Last updated on July 21, 2020 by Dan Nanni

Question: I am trying to build and install a Python package with easy_install, but I am getting this error during package download:
unknown url type: https
How can I fix this error?

A symptom of this error looks like the following.

Download error on http://pypi.python.org/simple/regex/: unknown url type: https -- Some packages may not be found!
Couldn't find index page for 'regex' (maybe misspelled?)

A possible fix to this error is to install SSL development libraries and header files.

On Debian, Ubuntu or Linux Mint:

$ sudo yum install libssl-dev

On CentOS, Fedora or RHEL:

$ sudo yum install openssl-devel

Support Xmodulo

This website is made possible by minimal ads and your gracious donation via PayPal or credit card

Please note that this article is published by Xmodulo.com under a Creative Commons Attribution-ShareAlike 3.0 Unported License. If you would like to use the whole or any part of this article, you need to cite this web page at Xmodulo.com as the original source.

Xmodulo © 2021 ‒ AboutWrite for UsFeed ‒ Powered by DigitalOcean