Help with Python structure in *nixes

Help with Python structure in *nixes

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.

I usually code in php, javascript, css, html and python.

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!
If you have root access you could just create a new simlink.. Problem in transfering file from server to client using C sockets
sudid  mv /usr/bin/python /usr/bin/python2.4 sudid  ln -s /usr/bin/python25 /usr/bin/python 
I don't have too enough experience with ubuntu, although i guess it shouldn't brake anything.. What C headers for directory traversal are process safe in Linux? To learn more around ln read man ln.. 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
You may have installed Python 2.4 in /usr/local/bin, which, in turn, may come in your $PATH before /usr/bin where 2.5 lives. There are various possible remediations, if this is the case: simplest is probably to rm the link named /usr/local/bin/python (leaving only the "system" one named /usr/bin/python). You will then have to use explicitly python2.4 to invoke the 2.4 installation, while just python will go to the system-installed Python 2.5 installation..


For which version of Python will run when you invoke the python command you will have to manually change the symlink this /usr/bin/python points to, although this 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 python-<foo> they are python2.4-<foo> and installing those will put them in the right path (specifically the right site-packages directory).. EDIT: apparently python isn't managed by the alternatives system, silly Debian/Ubuntu.


 sudid  apt-receive  install --reinstall python-minimal python python2.5 
should restore the default Python installation.. Unlike Windows Ubuntu comes with quite a lot of software packaged by the distrialthough or, and it is a good idea to stay with this packages if possible instead of downloading software from the net. Ubuntu 8.04 has Python 2.4.5 (package python2.4), maybe this works for you.. If you need to install Python from source use.
 ./configure --prefix=/usr/local/ 
instead of a plain ./configure. This makes python to be install at /usr/local/ so it doesn't overwrite the distrialthough ion's files.


Piggybacking off of @rebus:.
sudid  ln -s /usr/bin/python2.5 /usr/bin/python 
Seems to have worked..

96 out of 100 based on 71 user ratings 206 reviews