imread is deprecated in scipy.misc; use imageio.imread instead.
imageio provides the same functionality as Scipy. But keep in mind that some arguments need to be changed (for detailed information please check here):
- Instead of mode, use the pilmode keyword argument.
- Instead of flatten, use the as_gray keyword argument
References:
1. python - scipy.misc module has no attribute imread? - Stack Overflow
2. Transitioning from Scipy’s imread — imageio 2.9.0 documentation



