Results 1 to 10 of 14

Thread: Installing Python 2.6 on a system with Python 2.7.3

Hybrid View

  1. #1
    Join Date
    Jan 2012
    Beans
    250

    Installing Python 2.6 on a system with Python 2.7.3

    Can I Install Python 2.6 on a system with 2.7.3, because I have an application that will only run under Python 2.6. Is this possible?
    Whenever I install the package with dpkg it says it requires 2.6 and aborts.

  2. #2
    Join Date
    Aug 2007
    Beans
    190
    Distro
    Ubuntu

    Re: Installing Python 2.6 on a system with Python 2.7.3

    I have several python versions installed - it is possible. Of course, the latest way to go is to have python 2.7 installed along a 3.x one.

  3. #3
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Installing Python 2.6 on a system with Python 2.7.3

    There is a ppa for 2.6, I don't know if it conflicts with 2.7 or not

    https://launchpad.net/~python-dev/+archive/ppa


    You can also get the source here

    http://www.python.org/getit/releases/2.6.6/
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  4. #4
    Join Date
    Jan 2012
    Beans
    250

    Re: Installing Python 2.6 on a system with Python 2.7.3

    Code:
    W: Failed to fetch http://ppa.launchpad.net/python-dev/ppa/ubuntu/dists/precise/main/source/Sources  404  Not Found
    
    W: Failed to fetch http://ppa.launchpad.net/python-dev/ppa/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found
    
    E: Some index files failed to download. They have been ignored, or old ones used instead.
    glenn@acer:~$
    There is no ppa for precise, only hardy and jaunty. see:
    http://ppa.launchpad.net/python-dev/ppa/ubuntu/dists/

    So, how can I install python 2.6?

  5. #5
    Join Date
    Aug 2007
    Beans
    190
    Distro
    Ubuntu

    Re: Installing Python 2.6 on a system with Python 2.7.3

    I am surprised that you encountered problems in installation of python 2.6.
    Here is a demonstration of three side by side python versions on my laptop (Ubuntu 11.04):
    Code:
    pts@hal9000:~$ python2.6
    Python 2.6.6 (r266:84292, Mar 25 2011, 19:36:32) 
    [GCC 4.5.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> 
    KeyboardInterrupt
    >>> quit
    Use quit() or Ctrl-D (i.e. EOF) to exit
    >>> quit()
    pts@hal9000:~$ python2.7
    Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
    [GCC 4.5.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> quit()
    pts@hal9000:~$ python3.2
    Python 3.2 (r32:88445, Dec  8 2011, 15:26:58) 
    [GCC 4.5.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> quit()
    pts@hal9000:~$
    I installed them by using Synaptic. Actually if you search for python keyword in Synaptic, the first result is a generic package which will install the 2.7 version. If you go for something more specific, like python2.6 you will find what you are looking for.

  6. #6
    Join Date
    Dec 2007
    Location
    California
    Beans
    4,900
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Installing Python 2.6 on a system with Python 2.7.3

    If it's not in the ppa, then install from source. I linked it from pythons site.
    "You can't expect to hold supreme executive power just because some watery tart lobbed a sword at you"

    "Don't let your mind wander -- it's too little to be let out alone."

  7. #7
    Join Date
    May 2005
    Location
    Aarhus, Denmark
    Beans
    120

    Re: Installing Python 2.6 on a system with Python 2.7.3

    Quote Originally Posted by PeterP24 View Post
    I am surprised that you encountered problems in installation of python 2.6.
    Here is a demonstration of three side by side python versions on my laptop (Ubuntu 11.04):
    Yes, but Python 2.6 has been removed from the repositoried in 12.04 thus it's necessary to install from source e.g. I have to do this too, because I have a virtualenv which is dependent on 2.6.
    http://www.modspil.dk
    - fordi tiden kræver et MODSPIL!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •