6

I was trying some code segment,

from scipy import misc im = misc.imread(file_image, True) 

However, I got the error message such as

AttributeError: module 'scipy.misc' has no attribute 'imread' 

What can be the reason of this?

2
  • Do you have Pillow installed also? The image stuff isn't available without it. Commented Apr 6, 2018 at 4:47
  • 1
    Possible duplicate of scipy.misc module has no attribute imread? Commented Apr 6, 2018 at 5:30

1 Answer 1

6

This is because imread was discontinued by scipy as of 1.2.0, to solve it you can either install Pillow with

 pip install Pillow 

or downgrade to 1.1.0 with

 pip install scipy==1.1.0 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.