pycharm OSError: [WinError 193] %1 不是有效的 Win32 应用程序。

interpreter的问题,点击file-settings-project interpreter在这里插入图片描述
我的问题就是不小心把原来的python删掉了,所以没法编译,要重新安装个python。安装python的方法参考这篇博客 python安装
找到你安装python的目录,python.exe这个文件的目录:
在这里插入图片描述
点击加号
在这里插入图片描述
把python.exe的路径添加进来
在这里插入图片描述
到最后没有显示这是各invalid interpreter了就好

猜你喜欢

转载自blog.csdn.net/qq_43511299/article/details/114290355