How do I change my build configuration so that cmd points to actual location of the python interpreter?

后端 未结 3 970
猫巷女王i
猫巷女王i 2021-01-19 04:35

When I try to run python or any language through Sublime Text 2, all it says is

[Error 2] The system cannot find the file specified
[cmd:  [u\'python\', u\'-         


        
3条回答
  •  心在旅途
    2021-01-19 05:24

    After installing python from the following link http://www.python.org/download/releases/, you must Update your environment variables:

    1. click on start
    2. right click on computer
    3. click on advanced system settings
    4. click on environment
    5. locate path on system variables
    6. click on edit
    7. append ;C:\Python32\ to the end of the value or wherever the installer installed your Python

    Make sure you restart sublime after doing this, you will still get an error if you didn't.

提交回复
热议问题