Change default Python interpreter on Windows XP

后端 未结 7 1188
无人及你
无人及你 2021-02-01 09:06

I have two python versions: Python 2.5 and Python 2.7. When I\'m setting up django, I want to use Python 2.7, but django is using Python 2.5 somehow.

How can I make sur

7条回答
  •  粉色の甜心
    2021-02-01 09:17

    Now that Python 3.3 is released it is easiest to use the py.exe utility described here: http://www.python.org/dev/peps/pep-0397/

    It allows you to specify a Python version in your script file using a UNIX style directive. There are also command line and environment variable options for controlling which version of Python is run.

    The easiest way to get this utility is to install Python 3.3 or later.

提交回复
热议问题