当前的Python版本是2.4..。
yum upgrade python施予
Could not find update match for python我必须从源安装吗?
发布于 2009-06-11 16:39:10
是的,您需要从源代码中安装,您可以使用以下内容:
wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz
tar fxz Python-2.5.2.tgz
cd Python-2.5.2
./configure
make
make install这将安装python2.5命令,因为yum和CentOS的其他部分都需要旧的Python2.4,因此您将安装两个版本的Python2.5。
/usr/bin/python - 2.4.3
/usr/bin/python2.5 - 2.5发布于 2010-08-06 12:09:49
./configure
make
make install命令应该如下(根据自述为2.7)
./configure
make
make altinstall请参阅自述中的“安装多个版本”部分。
发布于 2010-02-20 18:58:54
我在./配置时出错了
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.所以,我安装了这些软件包
yum install gcc make然后,它起作用;)
https://serverfault.com/questions/24207
复制相似问题