Is it possible to install 2 versions of Python on Windows 7 and if so do I just need to run the separate installers? (and all will work well if I do, without any configuration?)
Yes. I suggest installing the version you will use the most last, because the installer
To use a specific version of Python, simply use the full path to the executable. And/or set the appropriate environment variables (
I just installed three versions of Python (2.5, 2.7, then 2.6) on Windows 7. I wanted to be able to specify which version of Python to use for "Open with IDLE", so I added some registry keys under:
I found that the formal way to do this is as follows:
Just install two (or more, using their installers) versions of Python on Windows 7 (for me work with 3.3 and 2.7).
Follow the instuctions below, changing the parameters for your needs.
Create the following environment variable (to default on double click):
To launch a script in a particular interpreter, add the following shebang (beginning of script):
To execute a script using a specific interpreter, use the following prompt command:
To launch a specific interpreter:
To launch the default interpreter (defined by the PY_PYTHON variable):
Documentation: Using Python on Windows
PEP 397 - Python launcher for Windows
Yes, no problem. I have it on my Windows 7 64 bit machine - I think i have Python 2.5 and 2.7 - each one was installed with other software - I think that one with Scidavis and second with Quantum GIS. Both programs are working OK. ;-)