赞
踩
可能是numpy的版本问题
原本:
import numpy as np
from numpy.lib.arraypad import _validate_lengths
改成:
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 版权所有,并保留所有权利。