Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyenv: BUILD FAILED (Ubuntu 15.04 using python-build 20160509)

I have already installed the pyenv on my system, and the command pyenv install --list goes well. But when I download some Python versions using pyenv install 2.7.11, it turns out as follows:

Downloading Python-2.7.11.tgz... -> https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz error: failed to download Python-2.7.11.tar.gz  BUILD FAILED (Ubuntu 15.04 using python-build 20160509) 

I didn't find any similar problem on the official Common build problems.

Is it that pyenv didn't catch the new Ubuntu update?

like image 733
Panfeng Li Avatar asked May 14 '16 14:05

Panfeng Li


1 Answers

The command pyenv install -v 2.7.11 gave me a similar error.

Installing the pyenv requirements solved my issue :

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 

(See https://github.com/pyenv/pyenv/wiki/Common-build-problems)

Then :

pyenv install 2.7.11 
like image 70
nicolas.f.g Avatar answered Oct 05 '22 02:10

nicolas.f.g