我正在尝试从skimage.morphology导入skatelateize()函数,但是它引发了一些异常错误。
直到我最近的Windows更新之前,此命令都可以正常工作。 我正在运行的各个版本是:
numpy 1.11.3
python 3.5.6
scikit-image 0.14.0
这是命令
from skimage.morphology import skeletonize
以下错误消息:
File "<ipython-input-69-3b41733bed63>", line 5, in <module>
from skimage.morphology import skeletonize
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\morphology\__init__.py", line 1, in <module>
from .binary import (binary_erosion, binary_dilation, binary_opening,
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\morphology\binary.py", line 6, in <module>
from .misc import default_selem
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\morphology\misc.py", line 5, in <module>
from .._shared.utils import warn
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\_shared\utils.py", line 10, in <module>
from ..util import img_as_float
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\util\__init__.py", line 6, in <module>
from .apply_parallel import apply_parallel
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\skimage\util\apply_parallel.py", line 8, in <module>
import dask.array as da
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\dask\array\__init__.py", line 5, in <module>
from .core import (Array, block, concatenate, stack, from_array, store,
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\dask\array\core.py", line 29, in <module>
from . import chunk
File "C:\Users\Nimesh Shahdadpuri\Anaconda3\lib\site-packages\dask\array\chunk.py", line 73, in <module>
nancumprod = npcompat.nancumprod
AttributeError: module 'dask.array.numpy_compat' has no attribute 'nancumprod'
请帮助我解决此错误。