ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?
Please consult to the Wiki page to fix the problem. https://github.com/pyenv/pyenv/wiki/Common-build-problems
BUILD FAILED (Ubuntu 20.04 using python-build 1.2.24.1)
Inspect or clean up the working tree at /tmp/python-build.20210319200707.52744 Results logged to /tmp/python-build.20210319200707.52744.log
Last 10 log lines:
rm -f /home/eric/.pyenv/versions/2.7.9/share/man/man1/python.1
(cd /home/eric/.pyenv/versions/2.7.9/share/man/man1; ln -s python2.1 python.1)
if test "xno" != "xno" ; then
case no in
upgrade) ensurepip="--upgrade" ;;
install|*) ensurepip="" ;;
esac;
./python -E -m ensurepip
$ensurepip --root=/ ;
fi
sudo nano /etc/apt/sources.list
add deb http://security.ubuntu.com/ubuntu bionic-security main
sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev