from scipy.misc import imread& imresize
Problem description solution 1 solution 2
Problem description
from scipy.misc import imread # error
After query, the reason is that the from scipy.misc import imread, imwrite
and other methods have been abandoned, and python has encapsulated the imread method in the imageio module
Solution 1
To install the imageio Library:
pip install imageio
Normal use!
import imageio
imageio.imread("xxxx.png")
Solution 2
If the higher version is discarded, we can reduce the SciPy version!
Reduce the SciPy version to 1.2.1
pip install scipy==1.2.1
Read More:
- Python Error: ImportError: cannot import name ‘logsumexp’ from ‘scipy.misc’(Anaconda3\lib\site-packages\scipy\misc)
- [Perfectly Solved] attributeerror: module ‘SciPy. Misc’ has no attribute ‘toimage’ error
- How to Solve Error “ImportError: cannot import name imsave“
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘io’
- How to Solve Python ImportError: cannot import name UnrewindableBodyError
- Python Import Error: SystemError: Parent module ‘‘ not loaded, cannot perform relative import
- How to Solve Python Pandas Read or Import Files Error
- [Mac Pro M1] Python3.9 import cv2 Error: Reason: image not found
- [How to Solve]AttributeError: module ‘scipy’ has no attribute ‘stats’
- [Solved] python3.10 Error: cannot import name ‘Iterable‘ from ‘collections‘
- Python 3 uses the relative path import module
- Python ImportError: numpy.core.multiarray failed to import
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- [Solved] Python Project Import Module Error: ModuleNotFoundError
- Pychart: How to Solve myspyder.items import myitem Error
- How to Solve Pychart configuration import torch error
- KeyError: b ‘TEST’ problem in python3 conversion from csn-rcnn code
- How to Solve M1 chip import numpy Error
- GPY installation error: ERROR: Could not find a version that satisfies the requirement scipy…
- Raspberry pie import opencv error: ImportError: numpy.core.multiarray failed to import