Ubuntu下pyenv install 3.6.5 build失败

Ubuntu 下安装pyenv后安装python 3.6.5 Build 失败

root@ubuntu:~/.pyenv# pyenv install 3.6.5
Installing Python-3.6.5...
WARNING: The Python bz2 extension was not compiled. Missing the bzip2 lib?
WARNING: The Python readline extension was not compiled. Missing the GNU readline lib?
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 16.04 using python-build 1.2.7-7-g21c75c1)

需要用下面命令,来自 Common build problems

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev

你可能感兴趣的:(Ubuntu下pyenv install 3.6.5 build失败)