Sublime Forum

WinError2: The system cannot find the file specified

#1

Good day,

Kindly assist me with this error.

[WinError 2] The system cannot find the file specified
[cmd: [‘py’, ‘-u’, ‘C:\Users\mmaph\Sublime_Python\Sublime_PythonFile1.py’]]
[dir: C:\Users\mmaph\Sublime_Python]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\mmaph\AppData\Local\Microsoft\WindowsApps;;C:\Users\mmaph\AppData\Local\Programs\Microsoft VS Code\bin]
[Finished]

0 Likes

#2

Do you have python installed?

0 Likes

#3

Yes, I have installed python.

0 Likes

#4

Have you added it to your PATH?

0 Likes

#5

Python for Windows should install the python launcher (py.exe) into Windows directory, so it should be available without %PATH% manipulation.

All Conda or Anaconda users however need to write a custom python build system, which uses python.exe to run scripts.

see also:

Note: Searching for Python and WinError reveals dozens of topics, which give answers to this very frequent question.

0 Likes

#6

I’m having this same WinError 2 problem. Installing Python is a new concept for me and I don’t know how to do it. Will you please explain what that means or how do got about it? It could be my solution.

0 Likes