Installing multiple python versions - CentOs Linux

B

Brendan

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?
 
D

Diez B. Roggisch

Brendan said:
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
 
M

Michele Simionato

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
 
B

Brendan

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top