pyenv:构建失败(Ubuntu 15.04 使用 python-build 20160509) [英] pyenv: BUILD FAILED (Ubuntu 15.04 using python-build 20160509)

查看:49
本文介绍了pyenv:构建失败(Ubuntu 15.04 使用 python-build 20160509)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的系统上安装了 pyenv,并且命令 pyenv install --list 运行良好.但是当我使用pyenv install 2.7.11下载一些Python版本时,结果如下:

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)

我在官方常见构建问题上没有发现类似问题.

是不是 pyenv 没有赶上新的 Ubuntu 更新?

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

推荐答案

pyenv install -v 2.7.11 命令给了我类似的错误.

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

安装 pyenv 要求解决了我的问题:

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

(见 https://github.com/pyenv/pyenv/wiki/常见的构建问题)

然后:

pyenv install 2.7.11

这篇关于pyenv:构建失败(Ubuntu 15.04 使用 python-build 20160509)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆