Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Installing Python 2.6 on a system with Python 2.7.3

  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,899
    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,899
    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
    Jan 2012
    Beans
    250

    Re: Installing Python 2.6 on a system with Python 2.7.3

    Code:
    glenn@acer:~/Downloads$ sudo dpkg -i makehuman-nightly-linux-i386.deb
    Selecting previously unselected package makehuman-nightly.
    (Reading database ... 219716 files and directories currently installed.)
    Unpacking makehuman-nightly (from makehuman-nightly-linux-i386.deb) ...
    dpkg: dependency problems prevent configuration of makehuman-nightly:
     makehuman-nightly depends on python2.6; however:
      Package python2.6 is not installed.
     makehuman-nightly depends on libpython2.6; however:
      Package libpython2.6 is not installed.
    dpkg: error processing makehuman-nightly (--install):
     dependency problems - leaving unconfigured
    Processing triggers for desktop-file-utils ...
    Processing triggers for bamfdaemon ...
    Rebuilding /usr/share/applications/bamf.index...
    Processing triggers for gnome-menus ...
    Errors were encountered while processing:
     makehuman-nightly
    glenn@acer:~/Downloads$
    something is wrong with my system. When I type:
    Code:
    glenn@acer:~/Downloads$ python --version
    Python 2.6
    glenn@acer:~/Downloads$
    How do I uninstall then reinstall python? Because I think it has got itself confused.

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

    Re: Installing Python 2.6 on a system with Python 2.7.3

    @Senior_Buckethead

    Are you sure? In a terminal, write python. Check the output above the python prompt - it usually report the version of python you have installed. If it is 2.6.6 or so, you have managed somehow to replace the default installation (2.7). Like I mentioned in a previous post - I am surprised - I always thought that versions of python can coexist. I still believe it!

    Now, you should check in a terminal to see if, during your tries, you installed some other python versions: try first python2.6, then python2.7 or any other versions you might have worked with. Again - I state that Synaptic might be a better choice to install various python versions - you should really give it a try before trying to install from sources or ppas.

  9. #9
    Join Date
    Jan 2012
    Beans
    250

    Re: Installing Python 2.6 on a system with Python 2.7.3

    Code:
    glenn@acer:/etc/apt/sources.list.d$ python
    Python 2.6 (r26:66714, May  5 2012, 12:14:36) 
    [GCC 4.6.3] on linux3
    Type "help", "copyright", "credits" or "license" for more information.
    >>> ^C
    KeyboardInterrupt
    >>> quit()
    glenn@acer:/etc/apt/sources.list.d$
    And yet when I try to install makehuman:
    Code:
    glenn@acer:~/Downloads$ sudo dpkg -i makehuman-nightly-linux-i386.deb
    Selecting previously unselected package makehuman-nightly.
    (Reading database ... 221956 files and directories currently installed.)
    Unpacking makehuman-nightly (from makehuman-nightly-linux-i386.deb) ...
    dpkg: dependency problems prevent configuration of makehuman-nightly:
     makehuman-nightly depends on python2.6; however:
      Package python2.6 is not installed.
     makehuman-nightly depends on libpython2.6; however:
      Package libpython2.6 is not installed.
    dpkg: error processing makehuman-nightly (--install):
     dependency problems - leaving unconfigured
    Processing triggers for desktop-file-utils ...
    Processing triggers for bamfdaemon ...
    Rebuilding /usr/share/applications/bamf.index...
    Processing triggers for gnome-menus ...
    Errors were encountered while processing:
     makehuman-nightly
    glenn@acer:~/Downloads$
    I'll try to see if I can reinstall python using synaptic. Something has got to be broken.

  10. #10
    Join Date
    Jan 2012
    Beans
    250

    Re: Installing Python 2.6 on a system with Python 2.7.3

    Start by running the script "./configure", which determines your
    system configuration and creates the Makefile. (It takes a minute or
    two -- please be patient!) You may want to pass options to the
    configure script -- see the section below on configuration options and
    variables. When it's done, you are ready to run make.

    To build Python, you normally type "make" in the toplevel directory.
    If you have changed the configuration, the Makefile may have to be
    rebuilt. In this case you may have to run make again to correctly
    build your desired target. The interpreter executable is built in the
    top level directory.
    Ok, I have downloaded python 2.6. I have unzipped the file and now have a python2.6 directory.
    I have run the configure script. All is good.

    What do they mean by 'top level directory'? Where should I put the python installation folder before running make?

Page 1 of 2 12 LastLast

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
  •