当我在Python中运行此程序时,它会显示以下错误:
ImportError: No module named skimage.io.
我已经运行了pip install scikit-image
命令,但仍然出现此错误。你能帮帮我吗
这是我的代码:
import matplotlib.pyplot as plt
import skimage.io as io
import skimage.color as color
parrots = io.imread('C:\Python27\Example\parrots.bmp')
parrots_hsv= skcolor.convert_colorspace(parrots, 'RGB','HSV')
fig, ax= plt.subplots(nclos = 2, figsize=('8,4'))
ax[0].imshow(parrots)
ax[0].set_title('original image')
restored_image =skcolore.convert_colorspace(parrots_hsv, 'HSV','RGB')
ax[1].imshow(restored_image)
ax[1].set_title('restored image')
plt.show()`enter code here`
我这样重复了这个错误:
错误:
修理人:
因此,我假设如果您将导入更改为以下代码,它可能会修复它:
此外,您可能需要阅读一些here来了解有关导入的简单解释
相关问题 更多 >
编程相关推荐