471,571 Members | 1,366 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,571 software developers and data experts.

Installing multiple python versions - CentOs Linux

The current CentOs Linux distro includes python 2.4.3. I need to
install a more recent version but I am worried about breaking CentOs
python dependencies. Is it safe to install python 2.6 using pup?
Oct 17 '08 #1
3 10557
Brendan schrieb:
The current CentOs Linux distro includes python 2.4.3. I need to
install a more recent version but I am worried about breaking CentOs
python dependencies. Is it safe to install python 2.6 using pup?
It should be, yes. Usually, Distros make sure it doesn't break anything
- and python can have several installations living happily along each
other.

The only caveat I see is that you might accidentially replace
/usr/bin/python with the newer version. Make sure you keep that to the
one the system wants, and simply use python2.6 as executable-name.

Diez
Oct 17 '08 #2
On Oct 17, 2:51*pm, "Diez B. Roggisch" <de...@nospam.web.dewrote:
Brendan schrieb:
The current CentOs Linux distro includes python 2.4.3. I need to
install a more recent version but I am worried about breaking CentOs
python dependencies. Is it safe to install python 2.6 using pup?

It should be, yes. Usually, Distros make sure it doesn't break anything
- and python can have several installations living happily along each
other.

The only caveat I see is that you might accidentially replace
/usr/bin/python with the newer version. Make sure you keep that to the
one the system wants, and simply use python2.6 as executable-name.

Diez
If you install from sources, the safest path is to run

$ sudo make altinstall (will add the version number to the executable)

and NOT

$ sudo make install

Oct 17 '08 #3
If you install from sources, the safest path is to run
>
$ sudo make altinstall (will add the version number to the executable)

and NOT

$ sudo make install
Ah, that is perfect. Thank-you!
Oct 17 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Peter Maas | last post: by
7 posts views Thread by Edward Diener | last post: by
reply views Thread by Darren L. Weber | last post: by
1 post views Thread by Ioannis Vranos | last post: by
1 post views Thread by Nick Day | last post: by
5 posts views Thread by jgelfand | last post: by
3 posts views Thread by Alexandre Gillet | last post: by
1 post views Thread by F. | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.