Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2009, 07:48 AM   #1
Registered: May 2009
Posts: 52

Rep: Reputation: 16
Thumbs down Updating version for the python

Dear all,

I am being faced this problem last week.Now I need some solution. While installing Debian os itself Python has been installed successfully.the version is 2.4.4.But I want to use 2.6 how can I upgrade it.

Whether I want to delete the existing version of python and install new version ?


Without deleting the existing version in my system I can upgrade the version of the python.

Please help me............
Old 09-07-2009, 12:10 PM   #2
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
You could just install the new version alongside the old one, and simply use the new python where needed. I had an "oldish" installation of Python at work and since I didn't have the permissions to upgrade the system, simply installed a local (newer) version and used that. If you download the package, there are instructions for that. You'll need compilation tools for that, of course. I'm not completely sure how it would work out with the binary packages, maybe somebody else can shed light on that -- if and how it's possible to install a binary package to a non-default prefix -- but if you have the compilation tools ready, it's no hassle installing it to a different prefix, for example $HOME/python-2.6, or /opt/python-2.6 or where ever you want it.

Of course you can just check if some Debian reposities have the 2.6 version of Python (or version 3) and use apt-get to upgrade the installation, but don't be afraid to compile another version either. Just grab the needed compilation tools from Debian reposities and get to work; if I recall this right, it's just a matter of passing --prefix=/new/prefix option to the configure script and then proceeding as usual.

See the 2.6 release page at for more information (download the source and read the README file). Or if you're interested and it's ok not to use version 2, click the link for 3.1.1.

Last edited by b0uncer; 09-07-2009 at 12:15 PM.
Old 09-07-2009, 12:37 PM   #3
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
2.4.4 seems to be in etch(oldstable), while all other branches (including the backports) got 2.5.*
So if you want 2.6 theres no way by using the official debian repos.

check here for search term python in the branches to make sure its right info:
Old 09-07-2009, 04:29 PM   #4
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,325

Rep: Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583Reputation: 3583
One thing is sure : you cannot remove the default python.
100--150 of your packages depends on it.
If you recently installed the old Debian Etch, you could
just replace it with Ubuntu 9.04, which has python 2.5
and 2.6 installed at the same time.
Or wait the 3-4 weeks for Ubuntu 9.10 : which also has both.

Debian Etch : see @ b0uncer post # 2, for the extra python,
just compile it. No 2.6 packages for Debian, AFAIK.

Last edited by knudfl; 09-08-2009 at 06:24 PM.
Old 09-08-2009, 01:46 AM   #5
LQ Newbie
Registered: Sep 2009
Posts: 8

Rep: Reputation: 0
download the RPM and install it
rpm -i [rmp name]


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Rsync to version 3.0.4 Rudy Red Hat 4 08-26-2009 06:22 PM
updating Kernel from version 2.6.9 to version 2.6.19 varala_kanth Linux - Kernel 1 01-18-2007 04:21 AM
python problem - compiled from source - python -V still showing old version txm123 Linux - Newbie 1 02-15-2006 12:05 PM
Need help in installing new python version.... Robert135 Linux - Software 1 12-30-2004 01:50 AM
Kernel Version and updating DMAN Linux - Software 2 01-16-2002 11:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration