LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2014, 05:25 PM   #1
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
How to setup Side-by-side python and manually install modules to a specific version?


Hey everyone,


Havent had to do this before but we have a CentOS 5 box that needs 2.7 for a specific script. We have 2.4.3 working just fine that other scripts rely upon.

I am able to manually install python 2.7 to /usr/bin/python2.7 but need to install additional python modules and am stuck as I am not able to find any documentation on line for this.

For example, I need to get ipdb installed but cannot use pip because it will try to install it to python 2.4.3 and not the compiled 2.7.

Any references are much appreciated.

Thanks.
 
Old 09-09-2014, 05:46 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Original Poster
Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Been a long time since I messed with python, was way too simple and obvious but I got it goin. One of those moments where you feel dumb but oh well.


Here are the steps for anyone who stumbles across this looking for the same.

Just need to use git or wget or whatever to download the tar/zip file extract it, then call your specific version of python and build/install it:

Code:
wget https://github.com/gotcha/ipdb/archive/master.zip
unzip ./master
/usr/bin/python2.7 ./ipdb-master/setup.py build
/usr/bin/python2.7 ./ipdb-master/setup.py install
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Side-by-side install of multiple versions of packages from source into /opt deskt0plinux Linux - Newbie 2 09-07-2012 01:50 AM
unable to install centos side by side ubuntu mrajdeep Linux - Newbie 3 08-12-2012 02:21 AM
Side by side install of Linux with Windows 7 gallicbear Linux - Newbie 7 06-13-2011 10:11 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration