问题:
Traceback (most recent call last):
File "test.py", line 15, in
from util.visualizer import Visualizer
File "D:\wGAN\mc-gan2\util\visualizer.py", line 14, in
from skimage import data, img_as_float
File "D:\Anaconda3\envs\torch\lib\site-packages\skimage\__init__.py", line 157, in
from .util.dtype import (img_as_float32,
File "D:\Anaconda3\envs\torch\lib\site-packages\skimage\util\__init__.py", line 16, in
from ._montage import montage
File "D:\Anaconda3\envs\torch\lib\site-packages\skimage\util\_montage.py", line 4, in
from .. import exposure
File "D:\Anaconda3\envs\torch\lib\site-packages\skimage\_shared\lazy.py", line 62, in __getattr__
return importlib.import_module(f'{package_name}.{name}')
File "D:\Anaconda3\envs\torch\lib\importlib\__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'skimage.exposure'
原因:
查了一下,skimage应该是有这个exposure模块的,如果有问题,说明没有安装好。具体原因不是很清楚。
解决办法:
pip uninstall scikit-image
pip index versions scikit-image (查找所有可以安装的版本)
pip install scikit-image==0.18.3
本文结束
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)