运行Python时候,报错如下:
Error running 'index': Cannot run program "C:\Users\testgu\AppData\Local\Programs\Python\Python39\python.exe" (in directory "D:\PYWorkspace\ycyzharry"): CreateProcess error=2, 系统找不到指定的文件。
解决办法:
Pycharm找到"File" ->"Settings" ->"Project:XXX" ->"Python interpreter"
选择对应的Python版本并且Apply

