Sublime Forum

The system cannot find the file error

#1

I just downloaded sublime, and when I opened a new .py file and ran it, it gave me the following

The system cannot find the file C:\Users\username\AppData\Local\Microsoft\WindowsApps\python.exe.
[Finished in 0.1s with exit code 1]
[shell_cmd: python -u “D:\Desktop\stuff.py”]
[dir: D:\Desktop]
[path: C:\Users\usern\AppData\Local\Microsoft\WindowsApps\python.exe;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Oculus\Support\oculus-runtime;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:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\MATLAB\R2019b\runtime\win64;C:\Program Files\MATLAB\R2019b\bin;C:\Program Files\Common Files\Autodesk Shared;C:\Users\z3295999\AppData\Local\Microsoft\WindowsApps;C:\adb;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files\dotnet;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\username\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\usrname\AppData\Local\Programs\Python\Python38-32;C:\Users\username\AppData\Local\Microsoft\WindowsApps;]

I cannot seem to find a solution, I have searched everywhere and looked in multiple forums, but I have found no answer. Any fixes?

0 Likes

#2

I strongly feel it has something to do with Python installed from Microsoft App Store.

From a Chinese blog’s article, it seems normal that you can’t find the Python from a non-cmd environment somehow.

His solution is to disable python alias which is done by Microsoft. But I personally don’t understand that why you need Microsoft’s Python while you have another one installed from official Python website.
image
image

0 Likes