Python Forum

Full Version: Sublime Text 3 WinError 2 File Specified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, newbie to coding here. I am trying to run print("hello Python world!") on Sublime Text 3, but an error msg keeps popping up, as shown below:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\python_work\\hello_world.py']]
[dir: C:\python_work]
[path: C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT;C:\Program Files\Intel\Intel® Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Python37\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Launcher\;C:\Users\T-Gun2\AppData\Local\Microsoft\WindowsApps;]
[Finished]

The Python version I installed is 3.7.7. On Sublime Text 3, I have created a New Build System for Python3, ie. Tools --> Build System --> New Build System, with the entry below:
{
"cmd": ["python3", "-u", "$file"],
}

Could anyone help me resolve this problem? Much appreciated. Thank you!