无法在 RHEL 上通过 pyenv 安装 python

原主

安装pyenv在 RHEL7.6 上。

安装必要的库作为wiki

sudo yum install @development zlib-devel bzip2 bzip2-devel readline-devel sqlite \
sqlite-devel openssl-devel xz xz-devel libffi-devel findutils

检查安装可用列表

$ pyenv install --list | grep 3.8.2
  3.8.2

安装的时候报错:

$ pyenv install 3.8.2
Downloading Python-3.8.2.tar.xz...
-> https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz
error: failed to download Python-3.8.2.tar.xz

BUILD FAILED (Red Hat Enterprise Linux Server 7.6 using python-build 1.2.18-7-gae4d489)

甚至尝试设置代理但仍然出现相同的错误。

操作系统信息是

$ cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
杰瑞101

尝试从中下载源包https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz并将其放入 pyenv 缓存中$(pyenv root)/cache/

然后重试 pyenv install 3.8.2

https://github.com/pyenv/pyenv/issues/1476

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

RPM 无法在 RHEL 上安装

无法在 Python 3.8.8 上安装 PyCurl 7.43.0.6 | RHEL 8.3

在RHEL上安装Python 3

无法在 MacOS 11.1 上使用 pyenv 安装带有共享库的 Python 构建

AWS - 无法在RHEL上安装Java 1.8

无法在RHEL 7.1上安装GIT

无法在 Linux RHEL 7.4 上安装 tortoisehg

无法在 RHEL 8.5 上安装 powertools

pyenv 无法为 python 3.5.3 安装包

使用pyenv安装Python 3后无法导入tkinter

无法在 RHEL 8 中为 Python 安装 Pandas

自制pyenv ...尽管我已经安装了Python 3.8.3,但无法安装

在RHEL 6上安装无法访问Internet的ftp

在RHEL上安装EPEL

在RHEL上安装rcp

在RHEL上安装tshark

由于加密原因,无法在带有Python 2.6的RHEL 6上安装pywinrm模块。它指向cffi

RStudio发现安装了python pyenv,但无法运行Python进程

使用pyenv安装Python 3后在Ubuntu 14.04上安装matplotlib

无法在pyenv virtualenv中安装lektor:这些(其他)Python版本中存在`clang'

在RHEL上使用python 2.7安装Django App RPM

Python 3.5 与 2.7 (RHEL) 上的 Pip 安装速度明显变慢

无法通过在Python 3.4上运行的pip安装模块

无法通过pip(Windows 10)在Python 3.8上安装pygame

无法通过 pip 在 Python 上安装 pygame (Windows 10)

无法通过 pyenv 在 Ubuntu 20.04 上降级 Python 3.4 的 sqlite3.sqlite_version 以运行 tox 测试

在 MacOS BigSur 上使用 .python-version 和 .python-virtualen 安装 pyenv 失败

如何使用pyenv安装的python创建virtualenv

如何使用pyenv安装python 3.7.0?