导入错误:没有名为 caffe 的模块

And*_*rea 5 python neural-network anaconda conda caffe

我正在尝试在运行OSx 10.9.5的 Mac 上运行Google Research 的 DeepDream 代码
我必须安装一些依赖项。我正在使用 python 的 Anaconda 发行版,并确保我拥有所需的所有软件包。

最难的是安装Caffe。我使用 fink 安装了 ATLAS。然后我编译了caffe和pycaffe。当我运行“make runtest”时,所有测试都通过了。我还运行了“制作分发”。

当我运行从 Google 发布的笔记本时,出现以下错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-8200bcb1df23> in <module>()
      7 from google.protobuf import text_format
      8 
----> 9 import caffe
     10 
     11 def showarray(a, fmt='jpeg'):

ImportError: No module named caffe
Run Code Online (Sandbox Code Playgroud)

怎么会这样?我可以尝试做些什么来修复它?