tags:

views:

40

answers:

3

Hi All,

New to Python and programming in general. I want to "install" a module from the command line for v 2.6, but it looks like my default Python is 2.5. (python --version returns 2.5.4)

How can I run my python setup.py build/install on 2.6 instead?

Many thanks in advance,

Brock

A: 

Download Python v2.6.

mcandre
+3  A: 

It depends on your operating system. If you have python 2.6 installed, you need to change your environment path to point to the 2.6 executable rather than the 2.5 executable. Do a Google search for changing your PATH variable on your operating system.

Alex Bliskovsky
Just for reference: this was a great helphttp://people.cis.ksu.edu/~schmidt/301f09/setpath.html
Btibert3
+1  A: 

You can use explicit paths:

c:\python26\python setup.py install
c:\python25\python setup.py install
Mark Tolonen