Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 13086  / 2 Years ago, mon, october 10, 2022, 4:44:44

While installing Python using pyenv, I am getting the following error:



ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?


I am using Ubuntu 18.04 Bionic Beaver How do I solve this issue?


More From » python

 Answers
5

If the python version you are trying to install is equal or lower than 2.7.12, it does not support OpenSSL1.1.0, so you would need to replace libssl-dev with libssl1.0-dev.



Ubuntu 18.04 is the first official release to switch to OpenSSL1.1.0 which is why you might not have been impacted with this in the past.



Reference:
https://github.com/pyenv/pyenv/issues/945



https://github.com/pyenv/pyenv/wiki/common-build-problems#error-the-python-ssl-extension-was-not-compiled-missing-the-openssl-lib


[#8281] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
motivengry

Total Points: 459
Total Questions: 112
Total Answers: 108

Location: Bonaire
Member since Sat, May 1, 2021
3 Years ago
;