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
Similar Posts:
- Pythonmodule ‘scipy.misc’ has no attribute ‘xxx’
- [Solved] ImportError: cannot import name ‘imread’
- python from scipy.misc import imread:ImportError: cannot import name imread
- The solution of “importerror: DLL load failed: unable to find the specified module”
- Windows Python Install: requires numpy+mkl & ImportError: cannot import name NUMPY_MKL
- Solution for oserror: [errno 1] operation not permitted encountered when installing tensorflow
- Scipy ValueError: ‘arr’ does not have a suitable array shape for any mode.
- Python Importerror: DLL load failed: unable to find the specified module
- AttributeError: module ‘cv2’ has no attribute ‘SIFT’ [How to Solve]
- Error in installing SciPy and Matplotlib