Eclipse + Pydev开发Python时import报错解决方法
用eclipse +PyDev开发python时,需要import其他文件时eclipse会报错(左边出现红×),但是在python的命令行中运行却没有问题。
解决方法
1:点击Project按钮选择properties
2: 点击PyDev-interpreter/Grammar
3: 点击链接Click here to configure aninterpreter not listed
4:点击python-interpreters然后在右边点击New Folder