Skip to content Skip to sidebar Skip to footer

Installing Modules For Multiple Python Versions

I have installed python 2.6.6 and python 2.5.5 on the same machines (Ubuntu 10.0.4), since 2.6 is my default version and 2.5 I need for maintaining old stuff. But I have a problem

Solution 1:

You can use easy_install. To use it for particular version, you just execute it like for example sudo python2.5 easy_install package_name.

Solution 2:

You could install Pip for both 2.5 and 2.6 then create an alias in your bashrc like I have which I can do

pip25 install _package_

or

pip26 install _package_

That way you have exact control over where a module installs.

Post a Comment for "Installing Modules For Multiple Python Versions"