【发布时间】:2014-06-06 14:07:16
【问题描述】:
我已经从源代码安装了 python 2.7.6,但是找不到如何为 python 2.7 安装 python-devel
yum install python27-devel
不起作用。如何安装?
【问题讨论】:
-
我点击了这个链接:toomuchdata.com/2014/02/16/how-to-install-python-on-centos,它对我来说效果很好。试试看,请让我们知道你有什么!干杯!
-
Python 2.7 已经安装并且运行良好,但是这个关于安装python27-devel包的问题。
-
devel 包包含编译 Python 模块中的本机绑定所需的头文件。请注意,当使用
./configure && make && make installtrinity 从源代码安装 Python 2.7 时,没有可用的 python27-devel 包。 CentOS 6.x 不包含 Python 2.7。如果要构建依赖于 Python 2.7 源的 .src.rpm 或包,则应使这些源包含本地安装的源/头文件。 Please also read CentOS notes on source installs -
上述评论应该是公认的答案,因为以下每个问题仅提供 1. python 2.6 开发版本和 2. 独立 python 版本,均不回答问题
标签: python python-2.7 centos centos6