scipy.misc module has no attribute imread?
You need to install Pillow (formerly PIL). From the docs on scipy.misc
:
Note that Pillow is not a dependency of SciPy but the image manipulation functions indicated in the list below are not available without it:
...
imread
...
After installing Pillow, I was able to access imread
as follows:
In [1]: import scipy.misc
In [2]: scipy.misc.imread
Out[2]: <function scipy.misc.pilutil.imread>
AttributeError: module 'scipy.misc' has no attribute 'imread'
scipy.misc.imread
is depreciated in SciPy 1.0.0, and removed in Scipy 1.2.0. The documentation suggests using imageio.imread
instead.
https://docs.scipy.org/doc/scipy-1.2.1/reference/generated/scipy.misc.imread.html
Related Topics
Why Is It String.Join(List) Instead of List.Join(String)
Purpose of "%Matplotlib Inline"
Python/Numpy First Occurrence of Subarray
Embedding a Matplotlib Figure Inside a Wxpython Panel
How to Find the Location of Python Module Sources
How to Run Python Code from Sublime Text 2
Turn a String into a Valid Filename
Creating a Pandas Dataframe from a Numpy Array: How to Specify the Index Column and Column Headers
How to Get Indices of a Sorted Array in Python
How to Write a Multidimensional Array to a Text File
Why Is Parenthesis in Print Voluntary in Python 2.7
How to Properly Round-Up Half Float Numbers
Pandas Cannot Open an Excel (.Xlsx) File
Converting Epoch Time into the Datetime