Sublime Forum

[WinError 2] The system cannot find the file specified m

#1

I am learning python, I have anaconda installed.
I want to use Sublime text also.

[WinError 2] The system cannot find the file specified
[cmd: [‘py’, ‘-u’, ‘’]]
[dir: C:\Program Files\Sublime Text]
[path: C:\Program Files (x86)\VMware\VMware Player\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;]
[Finished]

0 Likes

#2

You need to save the file you’ve written before running it.

0 Likes

#3

Getting the same error

0 Likes

#4

Looks like you are saving the program in the Programs directory, specifically the Sublime Text sub-directory. This is non-writable for users. You must save the program in the Documents directory or some other non-write protected directory.

0 Likes

#5

still the same error

0 Likes

#6

You don’t have the “py” program installed or it’s not in your %Path%

0 Likes

#7

Since you have WindowsApp in your path, I assume you may install python from Microsoft. However, ST assumes you install python from the official Python installer from Python’s website, which provides py.

0 Likes

#8

image

I am using anaconda
Do I install python one more time ?

0 Likes

#9

I am not sure what’s the suggested way to deal with that since I don’t use Anaconda. But you will need a custom build, which calls python rather than py. Or, creating a link for python.exe as py.exe.

0 Likes