在安装 图像处理工具包 mahotas 后,在eclipse中尝试import mahotas时,出现Unresolved import错误,按快捷无法自动生成代码提示

但是,程序运行时可以通过,在命令行中import时,正常

 

解决方法如下:

在project右击打开菜单 ->选择properties->选择"PyDev-Interpreter/Grammar"->点击链接"Click here to configure an interpreter not listed." -> 在"Libraries"tab内,点击"new folder",加入module的路径->点击"ok"

如图
解决Eclipse Pydev中import时报错:Unresolved import
解决Eclipse Pydev中import时报错:Unresolved import
最终效果:
解决Eclipse Pydev中import时报错:Unresolved import
 
参考:
http://my.oschina.net/hcp/blog/41989
http://bbs.csdn.net/topics/390695339

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2022-01-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
猜你喜欢
  • 2021-06-27
  • 2021-09-25
  • 2021-10-01
  • 2021-09-23
  • 2021-09-07
相关资源
相似解决方案