使用 from scipy.misc import imread, imresize, imsave 時出現報錯,查找後發現新版本的Scipy再也不包含imread,imresize,imsave,須要使用的話,就安裝 scipy 1.0.0版本,spa
好比: conda install --prefix=/home/xxx/PycharmProjects/project_01/env scipy=1.0.0 orm
imread將用imageio.imread來取代,輸入: conda install --prefix=/home/xxx/PycharmProjects/project_02/env imageio 安裝imageioip
一樣imresize,imsave也被從scipy移除,分別使用skimage.transform.resize 和 imageio.imwrite來代替。ci
安裝skimage (Scikit-image)it
conda install --prefix=/home/xxx/PycharmProjects/project_02/env scikit-image io