What if it is not correct?
The most common error is having a problem in the environment variables used from the shell that spawned Eclipse,
in a way that for some reason when getting the variables of one interpreter, it gathers the info from another
interpreter (thus mixing the interpreter and the actual libraries).
Usually running (from the command prompt) the file that gives that info for PyDev can help you discovering the
problem in your configuration (interpreterInfo.py):
That file is usually located at: eclipse\plugins\org.python.pydev_$version$\pysrc\interpreterInfo.py,
but it can be at other location depending on how you installed it )
python.exe interpreterInfo.py
java.exe -cp c:\path\to\jython.jar org.python.util.jython interpreterInfo.py
ipy.exe interpreterInfo.py
If you're unable to find out what's going on, please ask in the users forum (giving the output obtained from
executing interpreterInfo.py in your machine).
大意是执行一下eclipse\plugins\org.python.pydev_$version$\pysrc\interpreterInfo.py就可以得到真正的错误信息了。
执行这个脚本时,我发现我自己的python不能运行,重装了一下就好。

文章指导用户通过执行特定脚本来诊断并解决Python环境配置错误,包括查找环境变量问题及使用不同命令来确认配置状态。
821

被折叠的 条评论
为什么被折叠?



