Can';t在RHEL上通过pyenv安装python
在RHEL7.6上安装了Can';t在RHEL上通过pyenv安装python,python,linux,rhel,pyenv,Python,Linux,Rhel,Pyenv,在RHEL7.6上安装了pyenv 根据需要安装必要的库 检查可用安装列表 $ 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.
pyenv
根据需要安装必要的库
检查可用安装列表
$ 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"
尝试从
https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tar.xz
并将其放入pyenv缓存$(pyenv root)/cache/
然后重试pyenv安装3.8.2
看
$ 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"