简体   繁体   中英

Sublime text not building python correctly

You can mark this as a duplicate as you need, but this is making me really tired of Sublime Text. I just got it today, and when I try to build python, this happens:

[shell_cmd: python -u "C:\Users\depia\floobits\ReverseString.py"]
[dir: C:\Users\depia\floobits]
[path: C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Components\TCS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Users\depia\AppData\Local\Microsoft\WindowsApps]

I can't build anything in python, and it is really annoying. Every time I try to build with Python, this happens. Any fix?

It seems python isnt on your path, you need to add it so sublime knows where to eexecutable is

See this answer on how to do it on windows How to add to the pythonpath in windows 7?

It should be done by default on Mac, hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM