我受够了此消息。尝试过google / stackoverflow搜索。
已应用发现的修复程序(例如升级版本等。)
什么都没用,我一直在得到.. (例如,使用->
from skimage.morphology import erosion, dilation, opening, closing, white_tophat
)
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-92efc73cf055> in <module>
4 import cv2
5 import os
----> 6 from skimage.morphology import erosion, dilation, opening, closing, white_tophat
7 from skimage.morphology import black_tophat, skeletonize, convex_hull_image
8 from skimage.morphology import disk
C:\Anaconda\lib\site-packages\skimage\__init__.py in <module>
174 dtype_limits)
175
--> 176 from .util.lookfor import lookfor
177 from .data import data_dir
178
C:\Anaconda\lib\site-packages\skimage\util\__init__.py in <module>
6 from .apply_parallel import apply_parallel
7
----> 8 from .arraycrop import crop
9 from ._regular_grid import regular_grid, regular_seeds
10 from .unique import unique_rows
C:\Anaconda\lib\site-packages\skimage\util\arraycrop.py in <module>
6
7 import numpy as np
----> 8 from numpy.lib.arraypad import _validate_lengths
9
10
ImportError: cannot import name '_validate_lengths' from 'numpy.lib.arraypad' (C:\Anaconda\lib\site-packages\numpy\lib\arraypad.py)
感谢任何帮助解决此问题的方法,