This error occurred when running the code recently-AttributeError: module’scipy.misc’ has no attribute’imread’.
After consulting the online materials, I found that most of the solutions are that the PIL third-party library is not installed. The library name is now Pillow. It is recommended to use the command pip install Pillow to install directly, but my problem is not resolved, and I continue to report AttributeError. : module’scipy.misc’ has no attribute’imread’.
After inquiries and attempts, it was found that it was a scipy version problem, and it could be solved perfectly by downgrading to scipy==1.2.1.
The command is as follows:
pip install scipy==1.2.1