|
1 >>> import scipy2 >>> scipy.misc3 <module 'scipy.misc' from 'C:\Python27\lib\site-packages\scipy\misc\__init__.pyc'>4 >>> scipy.misc.imread('test.tif')5 Traceback (most recent call last):6 File "<pyshell#11>", line 1, in <module>7 scipy.misc.imread('test.tif')8 AttributeError: 'module' object has no attribute 'imread'[url=][/url]
如题 解法一:在相应环境下安装Pillow,然后导 1 pip install Pillow2 import scipy.misc
解法二:换一种读取方法 1 import imageio2 content_image = imageio.imread
|
|