eclipse中安装插件pydev来开发eclipse时出现引用不了其它模块的状况的解决方法

在import引入其它模块时老是出现unrolved import的状况。。解决方法:html

一、在项目上右键点击,选择properties,以后选择PyDev-Interface/Grammerjava

二、以后点击"click here to configure an interpreter not list"python

三、在liberies下,选择"new folder"htm

四、以后选择该项目所在的src的目录import

 

以后就能够,只要引用正确,就能够了。。。module

注意:python的模块引用方式和java的有点不同,本人起初也是没有注意,才走了不少弯路。cli

如何引用其余包中的模块的方式,请参考:http://www.runoob.com/python3/python3-module.html引用

相关文章
相关标签/搜索