pyenv install 3.4.8
Downloading Python-3.4.8.tar.xz...
-> https://www.python.org/ftp/python/3.4.8/Python-3.4.8.tar.xz
Installing Python-3.4.8...
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 18.04 using python-build 1.2.19-1-gece59ca8)
Inspect or clean up the working tree at /tmp/python-build.20201118000548.3700
Results logged to /tmp/python-build.20201118000548.3700.log
Last 10 log lines:
(cd /home/【User name】/.anyenv/envs/pyenv/versions/3.4.8/share/man/man1; ln -s python3.4.1 python3.1)
if test "xupgrade" != "xno" ; then \
case upgrade in \
upgrade) ensurepip="--upgrade" ;; \
install|*) ensurepip="" ;; \
esac; \
./python -E -m ensurepip \
$ensurepip --root=/ ; \
fi
Ignoring ensurepip failure: pip 9.0.1 requires SSL/TLS
--Ubuntu 18.04 LTS (Windows 10 2004 WSL1 environment)
Up to 3.5.2 of Python3 series does not support OpenSSL 1.1.
sudo apt install libssl1.0-dev
pyenv install 3.4.8
Installing OpenSSL 1.0 will downgrade OpenSSL. After successfully installing Python, execute the following.
sudo apt install libssl-dev
Even in Ruby, an error occurs due to the same cause when it is less than 2.4. For details, refer to the article here.
Recommended Posts