我是python的半新手,我正在尝试使用scikit-image,但是一旦我尝试导入,我就会收到错误。我已经过了其中的几个,但是当我尝试导入时,我仍然坚持这个:
In [8]: from skimage import data, io, filter
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-8-7863d911e191> in <module>()
----> 1 from skimage import data, io, filter
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/skimage/data/__init__.py in <module>()
10
11 from .. import data_dir
---> 12 from ..io import imread, use_plugin
13
14
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/skimage/io/__init__.py in <module>()
9 from .collection import *
10
---> 11 from ._io import *
12 from ._image_stack import *
13
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/skimage/io/_io.py in <module>()
6
7 from ..io.manage_plugins import call_plugin
----> 8 from ..color import rgb2grey
9 from .util import file_or_url_context
10 from ..exposure import is_low_contrast
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/skimage/color/__init__.py in <module>()
----> 1 from .colorconv import (convert_colorspace,
2 guess_spatial_dimensions,
3 rgb2hsv,
4 hsv2rgb,
5 rgb2xyz,
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/skimage/color/colorconv.py in <module>()
56 from warnings import warn
57 import numpy as np
---> 58 from scipy import linalg
59 from ..util import dtype
60
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/linalg/__init__.py in <module>()
170 from .linalg_version import linalg_version as __version__
171
--> 172 from .misc import *
173 from .basic import *
174 from .decomp import *
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/linalg/misc.py in <module>()
3 import numpy as np
4 from numpy.linalg import LinAlgError
----> 5 from .blas import get_blas_funcs
6 from .lapack import get_lapack_funcs
7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scipy/linalg/blas.py in <module>()
153 import numpy as _np
154
--> 155 from scipy.linalg import _fblas
156 try:
157 from scipy.linalg import _cblas
ImportError: cannot import name _fblas
我已经搜索过这个问题了,但是其他人只需卸载并重新安装python就成功了,但事实并非如此。此外,其他人有Windows特定的解决方案,但我在Mac上。我非常自信我使用的是最新版本的python,numpy,scipy,matplotlib和skikit-image,因为我上周才安装了它们。