Update Python on LE 4.0 (Ubuntu 10)

Asked

Viewed 225 times

2

Hello

I need to use Simplehttpserver and only have for Python 2.6.6 and above and LE 4.0 is Python 2.6.5.

As it has no software centre (at least I did not find) I tried this code on the terminal but gave several errors:

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.7 

Someone would know how to update python even if it is to 2.6.6.

Thank you

  • 1

    maybe start by updating Ubuntu :)

3 answers

1

Evidently Ubuntu 10 is already very old and I do not have one available to test, but you should be able to install Python 2.7 side by side with the standard Python system. The important thing is not to try to replace standard Python with 2.7 as the various parts of the system will no longer work.

Try this:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DB82666C
sudo apt-get update
sudo apt-get install python2.7 python2.7-dev

Check that Python 2.7 has been installed and is in PATH:

python2.7 --version

If this prints version 2.7.x, then it worked. Also check that the default version of the system continues to previous:

python --version

You can now install easy_install-2.7 and Pip-2.7:

curl http://python-distribute.org/distribute_setup.py | sudo python2.7 -
easy_install-2.7 pip

0

  • Linux Educational 4.0 I’m using a . sh to access the server, but I can’t include the script here because it exceeds the character limit.

  • Well, I don’t know what you’re doing, but Simplehttpserver is available in Python 2.6.5, only you have to use the right name, capitalized...

0

If you change the Python _do_system_ by changing the minor-version, you will basically crash your system and need to reformat. Microversion updates (from 2.6.5 to 2.6.6) should work automatically with apt-get if your Aina system is maintained. Note that Python 2.6 is something really old, over 10 years old.

If Voce needs to maintain a server at this age without updating, the recommendation is to compile Python independently, and use virtualenv for any project involving Python]

In addition SimpleHTTPServer is available in any version 2.6 of Python.

  • I thought it was not available because when I try to access Simplehttpserver, the terminal does not show the access process to it and instead of opening the index page it opens the folder in the browser.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.