ImportError:在Mac OS上没有名为scipy.linalg.blas的模块

时间:2013-12-07 07:33:00

标签: python macos python-2.7 scipy

我正在尝试使用取决于git clone https://github.com/UCB-ICSI-Vision-Group/decaf-release.git的decaf(scipy),但收到错误:

slesarev-osx-2:decaf-release slesarev$ python build/lib/decaf/demos/demo_sparse_autoencoder.py
WARNING:root:Warning: I cannot import mpi4py. Using a dummpy single noded implementation instead. The program will run in single node mode even if you executed me with mpirun or mpiexec.

We STRONGLY recommend you to try to install mpi and mpi4py.

WARNING:root:mpi4py exception message is: No module named mpi4py
Traceback (most recent call last):
  File "build/lib/decaf/demos/demo_sparse_autoencoder.py", line 13, in <module>
    from decaf import base

  File "/Library/Python/2.7/site-packages/decaf/__init__.py", line 15, in <module>
    import layers

  File "/Library/Python/2.7/site-packages/decaf/layers/__init__.py", line 3, in <module>
    from core_layers import *

  File "/Library/Python/2.7/site-packages/decaf/layers/core_layers.py", line 16, in <module>
    from decaf.layers.convolution import ConvolutionLayer

  File "/Library/Python/2.7/site-packages/decaf/layers/convolution.py", line 5, in <module>
    from decaf.util import blasdot

  File "/Library/Python/2.7/site-packages/decaf/util/blasdot.py", line 7, in <module>
    import _numpy_blasdot

  File "/Library/Python/2.7/site-packages/decaf/util/_numpy_blasdot.py", line 5, in <module>
    from scipy.linalg.blas import fblas

ImportError: No module named scipy.linalg.blas

1 个答案:

答案 0 :(得分:0)

问题是macports没有安装默认python的包: Trouble installing scipy with macports