Ask Your Question
0

Install newer version of Python on very old Fedora release

asked 2014-03-31 03:35:49 -0500

Long Thai gravatar image

Recently, I have to work with a machine which has Fedora 8 installed in it. Its current python version is 2.5 and I want to upgrade it to 2.7. I try sudo yum install python but it doesn't work. So, I wonder if there is a way to install a new version or upgrade an old one. I think I should update Fedora's repositoty in order to do that, but have no idea how to do it. Thanks

edit retag flag offensive close merge delete

Comments

I'm not sure if it would work, but if your machine already has the GCC compiler, and I'm not sure if its version would be goog enough, but you could download Python's source code from python.org and compile by yourself.

fidelleon gravatar imagefidelleon ( 2014-03-31 12:55:04 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-03-31 07:44:36 -0500

Glenn gravatar image

I recently needed to install python27 for CentOS 6.5 for a project I was working on. I downloaded the source, did make and make altinstall. Worked well for me.

I'm told that using altinstall will leave the original python in place and untouched.

I post this for your consideration and not as a definitive "this is how it's done" answer.

edit flag offensive delete link more
0

answered 2014-03-31 04:19:32 -0500

Radek gravatar image

There used to be a COPR repository with SCL version of Python. Anyway, that would probably still require a newer version of RPM with scl-utils - http://copr.fedoraproject.org/coprs/bkabrda/python27rebuild/

edit flag offensive delete link more
0

answered 2014-03-31 14:36:04 -0500

sergiomb gravatar image

I would try update machine with preupgrade to F17 or something like F1x

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-03-31 03:35:49 -0500

Seen: 154 times

Last updated: Mar 31 '14