Stéphane Wirtel added the comment:
I close this issue, it's not related to the packaging of Python, but just to
your compilation.
As explained by Ammar Askar, when you compile Python, you have to be sure that
you have the openssl-dev package installed on your system
You can read this page:
Karthikeyan Singaravelan added the comment:
I guess it's due to the binary not being built with ssl module. During build
did you get a message like below ?
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with
X509_VERIFY_PARAM_set1_host().
Ammar Askar added the comment:
As the error says:
> Can't connect to HTTPS URL because the SSL module is not available.
Since you built it from source, you should check your build logs, the _ssl
module likely failed to build. You're most probably missing the openssl
dependency.
--
New submission from Jonathan Gossage :
Python 3.8 was installed from source on Ubuntu 19.04 desktop and a virtual
environment was created with python3.8 -m venv venvrh. When attempting to use
pip to install a package, the following error was encountered:
(venvrh)