CreateProcess error=3

When I try to run a program on Pycharm, it doesnt run and says "Error running 'main':  Cannot run program "C:\Users\Lucas\AppData\Local\Microsoft\WindowsApps\python3.10.exe" (in directory "C:\Users\Lucas\PycharmProjects\pythonProject"): CreateProcess error=3, The system cannot find the path specified".

This is the first time it has occured and it usually runs fine with no issues.

10 comments
Comment actions Permalink

To run the file currently opened in the editor, please right-click on the file you want to run, and select "Run <file_name>" from the context menu. Does it work?

0
Comment actions Permalink

I have the same problem and cant seem to fix it

 

0
Comment actions Permalink

Same thing happened to me starting on Saturday and I can't seem to fix it either.

Everything in my C:\Users\mcgeep\AppData\Local\Microsoft\WindowsApps folder shows as 0kb, indicating possible file corruption. I installed Python in a different location, and tried several different VENVs, but no matter what I set my environment to, it always seems to look in the WindowsApps directory for the interpreter and fails.

0
Comment actions Permalink

Could be an interpreter issue. Please try installing python from www.python.org and add it as a new project interpreter using this python installation.

2
Comment actions Permalink

I installed a fresh install of Python, did not put it in the Windows Apps folder, but for some reason even after removing all references to the Windows Apps folder (including environment variables in Windows, intyerpreter, and all VENV references), Pycharm still was looking for it under the Windows Apps folder and failing.

I ignored it for a day and came back to it today and it seems to be working now. Maybe I needed to restart Pycharm after all those changes? Maybe there was some reference somewhere that I missed? Who knows, it works now though

1
Comment actions Permalink

me i have the same problem from today, i cannot run normally and debugger neither

0
Comment actions Permalink

Pedro Furelosfabeiro

Could you please copy-paste the error you're getting?

0
Comment actions Permalink

Andrey Resler

Error running 'main': Cannot run program "C:\Users\***\AppData\Local\Microsoft\WindowsApps\python3.9.exe" (in directory "C:\Users\***\Desktop\***"): CreateProcess error=3, The system can not find the path specified. After check WindowsApps folder i figured out that all the executables have 0kb 


0
Comment actions Permalink

Andrey Resler hi! i fixed it uninstalling python version of microsoft store and reinstalling it from python.org version. After that on set python interpreter add the new one and thats all.

1
Comment actions Permalink

Ребята, была точно такая же проблема. Удалил все версии Python, а потом из Microsoft установил Python 3.10 и всё работает.

 

0

Please sign in to leave a comment.