设置pydev interpreter时出错

时间:2021-10-21 15:57:47

What if it is not correct?

官网:http://pydev.org/manual_101_interpreter.html

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不能运行,重装了一下就好。


相关文章