Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code won't run: ImportError: cannot import name 'imsave' from 'scipy.misc' #84

Open
scottmason2000 opened this issue Jul 15, 2019 · 3 comments

Comments

@scottmason2000
Copy link

I ran all of these from InFoCusp/tf_cnnvis

pip install setuptools
pip install six
python setup.py install
python setup.py clean

from scipy.misc import imsave # in *** init.py *** of tf_cnnvis

Error: ImportError: cannot import name 'imsave' from 'scipy.misc' (C:\projects\TensorFlow-MIL\venv\lib\site-packages\scipy\misc_init_.py)

What am I missing ???

@liufangcen
Copy link

maybe your scipy version is high.
you can try scipy==1.2.0.

@ghylander
Copy link

either install old versions of scipy, or in the scripts replace imsave with imageio.imwrite

@Eminencetoosure
Copy link

! pip install -U scipy==1.2.0

Rolling back uninstall of scipy
Moving to /Users/apple/opt/anaconda3/lib/python3.9/site-packages/scipy-1.7.3.dist-info/
from /Users/apple/opt/anaconda3/lib/python3.9/site-packages/~cipy-1.7.3.dist-info
Moving to /Users/apple/opt/anaconda3/lib/python3.9/site-packages/scipy/
from /Users/apple/opt/anaconda3/lib/python3.9/site-packages/~cipy

can you please tell me what I am doing wrong..?

from scipy.misc import imsave, imread, imresize
I can use the above line of code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants