Sublime Forum

Sublime is refusing to run a Python code

#1

I have an unlicensed version of Sublime Text i literally just downloaded, and its refusing to run any Python commands, the code isnt done yet, i barely started bcs i was trying to solve this one instead
This is the error message:
[WinError 2] The system cannot find the file specified
[cmd: [‘py’, ‘-u’, ‘C:\Sublime Text\development.py’]]
[dir: C:\Sublime Text]
[path: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\gabor\AppData\Local\Microsoft\WindowsApps;]
[Finished]

Thanks for any help in advance

0 Likes

#2

Have you installed python?

0 Likes

#3

Yes, that was my first thought for a fix

0 Likes

#4

It doesn’t look like python is in the PATH from the error you posted. The installer provides that as an option (https://docs.python.org/3/using/windows.html), or you can do that separately.

0 Likes

#5

I was about to reainstall Python, and found the issue before i could, i got blocked by my antivirus, so i gave it an exception and it works now. Thanks for the help.

0 Likes