Tag Archives: Error running ‘index’: Cannot run program “C:\Users\testgu\AppData\Local\Programs\Python\Python39\python.exe” (in directory “D:\PYWorkspace\ycyzharry”): CreateProcess error=2,

[Solved] Error running ‘index’: Cannot run program “C:\Users\testgu\AppData\Local\Programs\Python\Python39\python.exe” (in directory “D:\PYWorkspace\ycyzharry”): CreateProcess error=2, the system cannot find the specified file.

When running python, the following errors are reported:

Error running ‘index’: Cannot run program “C:\Users\testgu\AppData\Local\Programs\Python\Python39\python.exe” (in directory “D:\PYWorkspace\ycyzharry”): CreateProcess error=2, the system cannot find the specified file.

Solution:

Pychar found “file” -> “Settings” -> “Project:XXX” -> “Python interpreter”

Select the corresponding Python version and apply