在CentOS上升级到python 2.7后如何安装2.7版本的python-devel [英] How to install python-devel for 2.7 version after upgrade to python 2.7 on CentOS
本文介绍了在CentOS上升级到python 2.7后如何安装2.7版本的python-devel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
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
CentOS 6.7 ships with python 2.6.6, I've upgrade to python 2.7.6 following the tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4
升级python版本后,我想为python 2.7安装python-devel软件包,所以我运行命令:
After upgraded the python version, I want to install python-devel package for python 2.7, so I run the command:
yum search python | grep -i devel
yum install python-devel.x86_64
但是似乎软件包版本不会更改(仍为2.6.6),这是消息:
However it seems that the package version doesn't change (still 2.6.6), here is the message:
$ 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
感谢您的帮助。
推荐答案
您可以:
yum install centos-release-SCL
yum install python27 python27-scldevel
或搜索您的包裹
yum search python27*
这篇关于在CentOS上升级到python 2.7后如何安装2.7版本的python-devel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文