简体   繁体   中英

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. I need to configure virtualenv for a django 1.8 project to run.

As soon as django 1.8 works at least with python 2.7, I need it to be installed also. Installation of python requires gcc to compile python binaries. When I try to install gcc with yum install gcc , I get following errors:

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? I can't do it due to other soft requirements.

Thank you.

Install a compatible CentOS 6.5 on another computer. Install all necessary packages to develop Python 2.7.

Compile Python there.

Copy the compiled tree to the original server.

Run make install .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM