运行程序时发现显示scipy.misc 没有 imsave 的错误,查找官网:
scipy.misc.imsave
其中注释: This function is onlhy available is python imaging library (PIL) is installed.
1.
因此应当首先安装 PIL. 根据自己所用python 版本选则
pip install pillow
或
pip3 install pillow
2.
如果是在anaconda环境中运行的,可以通过在激活相应环境下安装来解决问题
conda install pillow