scipy: Unable to find `imresize`
I am unable to find imresize
:
http://docs.scipy.org/doc/scipy/reference/generated/scipy.misc.imresize.html
In [4]: from scipy.misc import imresize
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-18323fe20513> in <module>()
----> 1 from scipy.misc import imresize
ImportError: cannot import name imresize
Please help
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 12
- Comments: 19 (5 by maintainers)
I got this error even with pillow installed on scipy==1.3.0. I fixed it by installing an earlier version:
As always, Pauli is right: it’s not available unless you have PIL or pillow — so
pip install pillow
should do it.Since scipy 1.3.0rc1
resize
has been removed.I also got same issue… For me this was solved by updating conda
update conda --all
It is iirc present only if PIL is installed.
You can use
skimage.transform.resize
instead. Docimresize not available after 1.3.0.
can use
Image.resize
from PIL which you can install viapip install Pillow
.Then you can use it with
pip install scipy==1.1.0 --user USED IN GOOGLE COLAB duhaime THANK YOU ISSUE SOLVED
I installed via
pip
.Please note that since v1.0.0 there were already deprecation warnings and the possible alternatives ; see this old version of the docs.