How to run a python code on sublime text 3?

后端 未结 2 506
猫巷女王i
猫巷女王i 2020-12-11 07:41

i tried to run my code on windows 8 using ctrl+B but it gave the following error.

\'python\' is not recognized as an internal or external command,
operable p         


        
相关标签:
2条回答
  • 2020-12-11 08:37

    It looks like your PATH isn't setup correctly. Sometimes this happens when you install Python in a specific folder instead of the default C:\Python folder (e.g. C:\Python27)

    To setup your PATH, right click on 'My Computer' and click 'Properties', then in the 'System Properties' click on the 'Advanced' tab. In the 'System variables' section, you'll see a variable called 'Path'. Now add where you installed Python to that list (additional items are appended with a semicolon).

    For example, if you installed on C:\Program Files\Python27 then you would add ";C:\Program Files\Python27" to your PATH variable.

    0 讨论(0)
  • 2020-12-11 08:39

    Steps to fix it easily [For Pyhton 3.X] 1. Uninstall current version 1. Reinstall Note : Make Sure You Allow the Check box as Shown in the figure [Based on 3.7]

    ...

    0 讨论(0)
提交回复
热议问题