美文网首页
Ubuntu下pyenv install 3.6.5 build

Ubuntu下pyenv install 3.6.5 build

作者: Leo_23 | 来源:发表于2018-10-08 20:24 被阅读121次

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

      本文链接:https://www.haomeiwen.com/subject/zrzjaftx.html