Ubuntu18.04下使用pyenv安装python报错:BUILD FAILED (Ubuntu 18.04 using python-build 20180424)

Ubuntu18.04下使用pyenv安装python报错:BUILD FAILED (Ubuntu 18.04 using python-build 20180424)

解决方案:
执行如下命令:

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

然后在执行:(这里的版本号可根据需要自由调整)

pyenv install 3.6.4 -v

就可以安装上了!

你可能感兴趣的:(Linux)