install modules for specific python version

Robert Kern robert.kern at
Sun Feb 1 02:37:51 CET 2009

On 2009-01-31 19:00, Brendan Miller wrote:
> Hash: SHA1
> I have several version of python running side by side on my ubuntu
> install (2.5,2.6,3.0).
> I'm installing a module with a script, in this case
> logilab-common, so that I can get pylint going. However, I need to
> install into python 2.6, but by default it picks out 2.5 and throws
> things in the site packages for that version.
> Is there a standard way to specify what version of python you want to
> install into? I originally installed my other python versions with the
> altinstall method.

Whichever python executable that you used to run the is the version 
that the package gets installed to. Most likely, you will want to do something 
like this:

   $ python2.6 install

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-list mailing list