Change default Python interpreter on Windows XP

后端 未结 7 1189
无人及你
无人及你 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:14

    Python installer does no change to PATH environment variable under windows. When typing something like python setup.py windows first looks for python in PATH, then in current user registry hive

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe
    

    and then in local machine registry hive

    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe
    

提交回复
热议问题