how to run two django projects with different python versions [duplicate]
Possible Duplicate:
How to run multiple python version on Windows
i want to run two django projects at the same time on a single os (windows) simultaneously. both projects h开发者_JAVA技巧as different python versions.
here i want to run two django projects simultaneously on the machine. i don't know how it is possible because both projects runs with different version of python language. im currently running project with python version 2.5. but how can i run another project with different python version. because windows is dealing with only one version of python which is 2.5 .
Ok, so I'll answer the question again.
To use two versions, you install both alongside each other in different directories, as the installer on Windows will do, by default. To run one project with Python 2.5, you install and run it by using the Python.exe installed in the Python 2.5 directory. And to run the other project you run and install it by using the Python.exe installed in the 2.6 directory.
So when the Django documentation tels you to run "python setup.py install" you instead write "C:\Python25\Python.exe setup.py install" or "C:\Python26\Python.exe setup.py install".
It really is that simple.
精彩评论