赞
踩
numpy版本与skimage版本不匹配
打开Anaconda3的arraycrop.py,该文件我是在这里的C:\ProgramData\Anaconda3\Lib\site-packages\skimage\util\arraycrop.py
打开后,把import部分用下边的代码替换即可:
from __future__ import division, absolute_import, print_function
import numpy as np
from distutils.version import LooseVersion as Version
old_numpy = Version(np.__version__) < Version('1.16')
if old_numpy:
from numpy.lib.arraypad import _validate_lengths
else:
from numpy.lib.arraypad import _as_pairs
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。