-   Slackware (
-   -   Installing Python 2.7.3 on Slackware 13.37 with Python 2.6.6 on it (

dc_eros 10-15-2012 07:54 PM

Installing Python 2.7.3 on Slackware 13.37 with Python 2.6.6 on it

I wanted to install Python 2.7.x on my machine since I'm working with a Google AppEngine Python application (Python 2.7). This is a Slackware 13.37 32 bit VM.

Made some attempt by having the 14.0 slackbuild script, modifying some parameters to install it on different directory (/opt/python-2.7.3) but it seems to break all my python installs.

Anyway, I'm going to try this one (make altinstall) if this will work.

But if there is an easy/proven way, that would be awesome help.


Alien Bob 10-16-2012 08:44 AM

It should be possible to have two versions of python installed in parallel, I did that on an older version of Slackware some years ago. The only thing to be aware of is the symbolic link /usr/bin/python . If you fix that so that it points to "python2.6" again then all your other applications will find the 2.6 version of python if they call "python". You can fix this manually, or by running "upgradepkg --reinstall" on the original Slackware 13.37 package of python (which will fix that symlink but leave the rest of python 2.7 files alone).

For your application which needs python 2.7 you need to specify "/usr/bin/python2.7" explicitly as the python interpreter.


dc_eros 10-16-2012 10:43 AM

OK, I'll try that in the office.

dwblas 10-16-2012 12:32 PM

make altinstall has always worked for me. I have 2.6, 2.7 and 3.2 installed. It just installs the version, so does not change the "python" symlinks in /usr/bin or /usr/lib(64).

dc_eros 10-16-2012 09:30 PM

Done with altinstall.


make altinstall

Thanks all!

All times are GMT -5. The time now is 12:10 PM.