Btibert3 Btibert3 -4 years ago 192
Python Question

Windows Command Line Python Change Version

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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download