简体   繁体   English

ImportError:没有名为foxhound.utils.vis的模块

[英]ImportError: No module named foxhound.utils.vis

I am using Ubuntu, and python 2.7. 我正在使用Ubuntu和python 2.7。 Is there anybody help me overcome the following error? 有谁可以帮助我克服以下错误?

ImportError: No module named foxhound.utils.vis ImportError:没有名为foxhound.utils.vis的模块

which is caused by this line: 这是由以下原因引起的:

from foxhound.utils.vis import grayscale_grid_vis, unit_scale

I also did: 我也做了:

export PYTHONPATH="/home/jerome/bin/django-1.1/lib/python2.6/site-packages:$PYTHONPATH"

but no help!! 但没有帮助!

If you have already foxhound installed you should use: 如果您已经安装了foxhound ,则应使用:

from foxhound.vis import grayscale_grid_vis, unit_scale

because vis module is in the foxhound package and not in foxhound.utils ( utils is also a module, not a package). 因为vis模块位于foxhound软件包中,而不位于foxhound.utilsutils也是模块,而不是软件包)。 See the foxhound structure here . 这里查看foxhound结构。

Edit 编辑

To install foxhound : 安装foxhound

  1. Download it and unzip it - download link . 下载它并解压缩它的下载链接
  2. In the terminal navigate into the unzipped folder ( Foxhound-master ). 在终端中,浏览到解压缩的文件夹( Foxhound-master )。
  3. There run 那里跑

    python setup.py install

More info on installing python modules. 有关安装python模块的更多信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM