【问题标题】:Unable to extract python 2.7.x tar file无法提取 python 2.7.x tar 文件
【发布时间】:2017-12-22 13:03:36
【问题描述】:

我是 linux 和 python 的新手。我想安装最新版本的 python,但是在从 www.python.org/ftp/python/2.7.x(我尝试了 3 个不同的版本)下载了 tar 文件后,我无法提取文件。

我正在使用 RHEL 服务器版本 6.5

到底出了什么问题?

【问题讨论】:

  • 你也是截图新手?
  • 对不起,我不明白。你想要更多图片吗?
  • 不,不,我们需要干净地复制/粘贴您遇到的命令和错误

标签: python python-2.7 rhel6


【解决方案1】:

你可以用命令解压tar文件

>> tar xvzf filename.tar.gz

我建议你使用 Linux 包管理器安装最新版本的 python

使用 su 更改为 root 用户 ID,使用 subscription-managerto 验证您是否有权访问 Red Hat Software Repositories。

 $ su -
 >> subscription-manager repos --list-enable d
 >> yum update

 $ su -
 >> yum list installed python\*
 >> yum install python
 >> yum list available python\*

https://developers.redhat.com/articles/using-native-python-rhel-6-or-rhel-7/中所述

【讨论】:

  • 这似乎与我们不知道根本原因的 OP 问题无关。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-10-29
  • 1970-01-01
  • 2011-09-13
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多