My scipy.misc module appears to be missing imsave
Or pip install pillow
in order to install a new PIL implementation. This works well in Python 3.4.
scipy.misc.imsave
has been deprecated in newer Scipy versions.
Change your code to:
import imageio
imageio.imwrite('filename.jpg', array)
Try installing the Ubuntu package python3-imaging
. This packages provides PIL (the Python Imaging Library). PIL is required by imsave
(and other im*
functions in scipy.misc
).
I had the same problem and the answers to this question didn't help. I solved it by installing a previous version of scipy:
pip3 install scipy==0.17.0