Eclipse PyDev is throwing false errors

僤鯓⒐⒋嵵緔 提交于 2019-12-01 20:04:49

This happened to me as well, the problem was that eclipse couldn't find python.

My fix:

in Eclipse:

Window > Preferences > PyDev > Interpreter - Python

The settings here were blank. I clicked 'Auto Config', which suggested to me the path to python. I chose it, restarted eclipse, and problem solved.

Well, I see nobody has come up with some idea. I found out by myself so I'm posting how I solved it here; maybe it'll help somebody:

The problem was that I had recently changed my local machine's name, but PyDev was still looking for localhost when it tried to connect to the Python Shell. I just updated the files in my operating system containing the hostname, and voila (the automatic wizard did not update all the files for some reason, so I had to do it manually).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!