I came from a Windows background whern it comes to development environments. I'm used to run .exe's from everything I need to run and just forget.
Now, I have to use Linux at my work, in a non changeable Ubuntu 8.04, with permissions to upgrade my system using company's repositories only.
I need to install Python 2.4.3 to start coding in an old legacy system. I had Python 2.5. I downloaded Python 2.4.3 tarballs, ran ./configure make and such. Everything worked out, but now the "default" installation is my system is Python2.4 instead of of Python2.5.
I want help from you to change it back, and if possible, some material to read about symlinks, multiple Python installations, virtualenvs and such: everything I need to know before installing/upgrading Python modules. I installed for example the ElementTree package and don't even know in which Python installation it was installed.
Thanks in advance!
Duplicate file descriptor after popen
what is required to get intellisense for Gtkmm using editor Geany!
Problem in transfering file from server to client using C sockets
I don't have too much experience with ubuntu, but i guess it shouldn't brake anything..
sudo mv /usr/bin/python /usr/bin/python2.4 sudo ln -s /usr/bin/python25 /usr/bin/python
What C headers for directory traversal are process safe in Linux?
To learn more about
Is there a workaround for Linux mono's refusal to acknowledge that I have resized the columns of my VirtualMode ListView?
How to enable core PHP extension in Linux?
Programmatically insert and remove kernel modules in C
Consolidate multiple site files into single location
/usr/local/bin, which, in turn, may come in your
/usr/binwhere 2.5 lives.
There are various possible remediations, if that is the case: simplest is probably to
rmthe link named
/usr/local/bin/python(leaving only the "system" one named
You will then have to use explicitly
python2.4to invoke the 2.4 installation, while just
pythonwill go to the system-installed Python 2.5 installation..
pythoncommand you will have to manually change the symlink that
/usr/bin/pythonpoints to, but that won't change what the packaging system considers the "default version of Python" and means you will still have to install version-specific libraries if they are different for a specific version.
Luckily, those packages have an easy naming convention, instead of just
python2.4-<foo>and installing those will put them in the right path (specifically the right
site-packagesdirectory).. EDIT: apparently
pythonisn't managed by the alternatives system, silly Debian/Ubuntu.
should restore the default Python installation.. Unlike Windows Ubuntu comes with quite a lot of software packaged by the distributor, and it is a good idea to stay with this packages if possible instead of downloading software from the net.
sudo apt-get install --reinstall python-minimal python python2.5
Ubuntu 8.04 has Python 2.4.5 (package python2.4), maybe that works for you.. If you need to install Python from source use.
instead of a plain ./configure.
This makes python to be install at /usr/local/ so it doesn't overwrite the distribution's files.
Seems to have worked..
sudo ln -s /usr/bin/python2.5 /usr/bin/python