Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”

前几天系统崩掉,重置系统,很多安装过的软件也需要重新安装。之前python安装路径在C:\Users\XXX\AppData\Local\Programs\Python\Python37\python.exe,现在我把安装路径改为C:\python\python.exe,eclipse安装包位置不变,仍在D盘。

安装并配置好python后,新建python项目报错:The interpreter configured does not exist in the filesystem:C:\Users\XXX\AppData\Local\Programs\Python\Python37\python.exe

Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”_第1张图片

原因就是之前的安装路径仍然残留,需要更新。

此时我做了如下修改:

1、去Windows-》Preference-》PyDev-》Interpreters-》Python Interpreter

Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”_第2张图片

Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”_第3张图片

右侧点击【移除】,将原有的安装路径清除掉。

然后点击【Quick Auto-Config】,会自动检索Python安装路径:

Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”_第4张图片

点击【应用】,然后【确定】,则路径修改完毕。

此时再新建Python项目时就不报错了。

Eclipse创建Python项目报错:“The interpreter configured does not exist in the filesystem:xxxx(python路径) ”_第5张图片

 

你可能感兴趣的:(解决问题)