Sublime Forum

Python Build Error

#1

Noob here sorry. So I am trying to run a simple python program. Literally just print(‘hello world’).

print('hello world')

I am using the Build command or ctrl+b shortcut. The problem is I keep getting this error

[Error 2] The system cannot find the file specified
[cmd: [u’python’, u’-u’, u’C:\\Users\\myName\\Desktop\\Computer Science\\pythonWorkspace\\test\\src\\tester.py’]]
[dir: C:\Users\myName\Desktop\Computer Science\pythonWorkspace\test\src]
[path: C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Users\myName\AppData\Roaming\npm;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files (x86)\QuickTime\QTSystem;C:\Tcl\bin;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Users\myName\AppData\Roaming\npm;C:\Program Files (x86)\nodejs;C:\Program Files (x86)\Common Files\Adobe\AGL;C:\Program Files (x86)\QuickTime\QTSystem]
[Finished]

Anyone know how I can fix this? I know I have python 3 installed correctly as I can run programs from the eclipse plugin pydev(not that great, hence the switch to sublime), but they wont work in this. Thanks in advance for the help.

0 Likes

#2

I am an idiot. added the environment variable for python. all good now

0 Likes