install modules for specific python version

B

Brendan Miller

-----BEGIN PGP SIGNED MESSAGE-----
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 setup.py 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.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmE9BIACgkQ4eGWG/zYzOmmdgCfbjr3p3wQ8A0TpjeFaPJtmHkx
ktQAoI7wONrj5gT4BDclePpwY5kiCy8p
=Pg9L
-----END PGP SIGNATURE-----
 
J

John Machin

-----BEGIN PGP SIGNED MESSAGE-----
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 setup.py 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?

Quite generally, if you want to install a module into Python X.Y, use
Python X.Y to run the setup.py script.

E.g. on Windows I'd do
directory-containing-setup.py> c:\python26\python setup.py install

Just do the equivalent on ubuntu.

Cheers,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top