LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing Python 2.7.3 on Slackware 13.37 with Python 2.6.6 on it (http://www.linuxquestions.org/questions/slackware-14/installing-python-2-7-3-on-slackware-13-37-with-python-2-6-6-on-it-4175432380/)

dc_eros 10-15-2012 07:54 PM

Installing Python 2.7.3 on Slackware 13.37 with Python 2.6.6 on it
 
Hi,

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.

http://unix.stackexchange.com/questi...ions-of-python

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

Thanks

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.

Eric

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.

Code:

./configure
make
make altinstall

Thanks all!


All times are GMT -5. The time now is 01:27 PM.