Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21

Thread: How do I install python 2.7 in lucid?

  1. #11
    Join Date
    Apr 2008
    Beans
    5

    Smile Re: How do I install python 2.7 in lucid?

    If you only need a few features of 2.7, you can install them from pypi too. For example OrderedDict is here http://pypi.python.org/pypi/ordereddict/

    how to install:
    tar -xcvf ordereddict*gz
    cd ordereddict*
    sudo python setup install
    [enter password]

    That's all!

  2. #12
    Join Date
    Oct 2008
    Location
    Bogotá, Colombia
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I install python 2.7 in lucid?

    Hey, what about dependecies?

    I am installing a program (gns3 0.7.3), in the process it checks dependencies.

    I can install with all altinstall but would it be update dependencies?

    or better going for the source and make install of gns3.

    cheers.

  3. #13
    Join Date
    Sep 2007
    Location
    Barcelona
    Beans
    24
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: How do I install python 2.7 in lucid?

    Quote Originally Posted by Vox754 View Post
    Well, in general, there is no benefit in running a newer Python just because it is newer.

    (...)

    My advice is don't do it. Don't manually install new things just for the sake of it.

    And let this thread rest in piece, so that others may find good advice in the future, instead of polluting it with unnecessary comments.
    Thank-you very much, Vox754, 4 months later, your helpful post has avoided me a lot of problems.

  4. #14
    Join Date
    Aug 2009
    Location
    Paris
    Beans
    3
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How do I install python 2.7 in lucid?

    There are many reasons why somebody would want python 2.7
    In lucid, you might want to try using pythonbrew:
    https://github.com/utahta/pythonbrew

    Kind of like a virtualenv for python interpreters.
    (And you should be using virtualenv and maybe virtualenvwrapper)
    http://pypi.python.org/pypi/virtualenv

    happy python coding.
    ash

  5. #15
    Join Date
    Mar 2005
    Beans
    947
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How do I install python 2.7 in lucid?

    Or, at this point, you could just switch to Ubuntu 11.04 and get Python 2.7 with it...

  6. #16
    Join Date
    Jul 2011
    Beans
    1

    Re: How do I install python 2.7 in lucid?

    Hi,

    I am using Ubuntu 10.04 and Python v 2.6. Python v 2.6 does not support a particular import statement (from collections import Counter). So I installed Python v 2.7. I intend to use MySQL database along with Python. My 2.6v is connected to MySQL with the help of apt-get install mysql-python. How do I do the same with Python v 2.7 and get it support MySQL?

  7. #17
    Join Date
    Dec 2009
    Beans
    Hidden!

    Thumbs down Re: How do I install python 2.7 in lucid?

    LOL, been using python2.7 for a long time now with the following:
    Code:
    #this may or may not be safe. use at your own risk, but it works for me.
    sudo bash
    cp /etc/apt/sources.list /etc/apt/sources.bak
    sed -i 's/lucid/maverick/g' /etc/apt/sources.list
    apt-get update
    apt-get install python2.7
    sed -i 's/maverick/lucid/g' /etc/apt/sources.list
    apt-get update
    it's a good habit to keep backups if you use hacks like this but most of the time i don't encounter problems.
    Last edited by d3v1150m471c; September 18th, 2011 at 03:54 PM.

  8. #18
    Join Date
    Oct 2011
    Beans
    1

    Thumbs down Re: How do I install python 2.7 in lucid?


  9. #19
    Join Date
    Dec 2009
    Beans
    Hidden!

    Re: How do I install python 2.7 in lucid?

    You can also install the source of python2.7 on 10.04 LTS
    Code:
    ./configure --with-pydebug
    Code:
    sudo bash
    make install
    I haven't come across complications with this. it "just works"

    Code:
    # "Safer" install from link posted above:
    make altinstall
    Don't blame me if you break something though :-p
    Last edited by d3v1150m471c; October 28th, 2011 at 11:53 PM.

  10. #20
    Join Date
    Jul 2011
    Beans
    2

    Re: How do I install python 2.7 in lucid?

    I think you can download and install latest version python from http://python.org/download/
    But i think it is not a good idea to upgrade python on lucid. As ubuntu (In lucid case, as i have tried on it only) always recommend to have default python version.
    You can have both default and new version, by managing symbolic links. But i messed up with both python versions.
    Result : I had to reinstall ubuntu again.

    Since default version : 2.6.5, i too want to upgrade to 2.7. But right now i m not taking that risk. If anyone knows something which works perfectly on their machine without system getting unstable.Let me know.

Page 2 of 3 FirstFirst 123 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
  •