[英]Install python 2.7 with no gcc installed
I have a CentOS 6.5 server with python 2.6 and a restriction on updating kernel. 我有一台具有python 2.6的CentOS 6.5服务器,并且对更新内核有限制。 I need to configure virtualenv for a django 1.8 project to run.
我需要为运行的django 1.8项目配置virtualenv。
As soon as django 1.8 works at least with python 2.7, I need it to be installed also. django 1.8至少可以在python 2.7上运行,我也需要安装它。 Installation of python requires gcc to compile python binaries.
安装python需要gcc来编译python二进制文件。 When I try to install gcc with
yum install gcc
, I get following errors: 当我尝试使用
yum install gcc
,出现以下错误:
Error: Package: glibc-headers-2.12-1.166.el6_7.3.x86_64 (updates)
Requires: kernel-headers >= 2.2.1
Error: Package: glibc-headers-2.12-1.166.el6_7.3.x86_64 (updates)
Requires: kernel-headers
Is there any other way to install python without gcc and not updating kernel? 还有其他没有gcc且不更新内核的安装python的方法吗? I can't do it due to other soft requirements.
由于其他软性要求,我无法执行此操作。
Thank you. 谢谢。
Install a compatible CentOS 6.5 on another computer. 在另一台计算机上安装兼容的CentOS 6.5。 Install all necessary packages to develop Python 2.7.
安装所有必需的软件包以开发Python 2.7。
Compile Python there. 在那里编译Python。
Copy the compiled tree to the original server. 将编译的树复制到原始服务器。
Run make install
. 运行
make install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.