CentOS 6.7附带python 2.6.6,我按照教程https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4升级到python 2.7.6
升级python版本后,我想为python 2.7安装python-devel包,所以我运行命令:
yum search python | grep -i devel
yum install python-devel.x86_64
然而,似乎包版本没有改变(仍然是2.6.6),这里是消息:
$ yum install python-devel.x86_64
Loaded plugins: security
Setting up Install Process
Package python-devel-2.6.6-64.el6.x86_64 already installed and latest version
Nothing to do
感谢您的帮助。
答案 0 :(得分:1)
你可以:
yum install centos-release-SCL
yum install python27 python27-scldevel
或搜索您的包裹
yum search python27*