Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-09-2014, 05:25 PM   #1
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.

Old 09-09-2014, 05:46 PM   #2
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:

unzip ./master
/usr/bin/python2.7 ./ipdb-master/ build
/usr/bin/python2.7 ./ipdb-master/ install


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:16 AM.

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