AttributeError: 'numpy.ufunc' object has no attribute '__module__'
AttributeError: 'numpy.ufunc' object has no attribute '__module__'
我在 conda 环境中使用 'pip install scikit-image'
安装了 skimage。
我正在使用 python 2.7
.
当我尝试导入时:
from skimage import transform
它给我错误:
AttributeError: 'numpy.ufunc' object has no attribute 'module'
有人可以帮帮我吗?
您的 scikit-image 和 numpy 版本似乎不匹配,因为每个库的最新更新。我发现相互兼容的正确版本是 0.14.1
for scikit-image 和 1.15.4
for numpy。
通过执行这些命令安装这些特定版本的库:
pip uninstall scikit-image
pip uninstall numpy
pip install scikit-image==0.14.1
pip install numpy==1.15.4
现在导入这些库应该可以正常工作并且不会产生错误。
我在 conda 环境中使用 'pip install scikit-image'
安装了 skimage。
我正在使用 python 2.7
.
当我尝试导入时:
from skimage import transform
它给我错误:
AttributeError: 'numpy.ufunc' object has no attribute 'module'
有人可以帮帮我吗?
您的 scikit-image 和 numpy 版本似乎不匹配,因为每个库的最新更新。我发现相互兼容的正确版本是 0.14.1
for scikit-image 和 1.15.4
for numpy。
通过执行这些命令安装这些特定版本的库:
pip uninstall scikit-image
pip uninstall numpy
pip install scikit-image==0.14.1
pip install numpy==1.15.4
现在导入这些库应该可以正常工作并且不会产生错误。