importError: can not import name imsave / imread modules

First of all to look at the appropriate library has been installed successfully

pip install numpy

pip install pillow

pip install scipy

After successfully installing, executing:

import scipy.misc

dir(scipy.misc)

If there is no output imsave, imread module, explain your scipy version of the problem.

This is scipy 1.3.0 version:

Surface on the lack of several modules.

If you need to use imsave, imread modules, put the original scipy unloading (pip uninstall scipy), and you want to manually install the corresponding version wheel.1.2 own python version: "Go to the official website scipy"

Once downloaded, manually add: pip install ~ .whl (absolute path to the file storage)

After installation, look again scipy.misc module, python 3.7:

problem solved! ! !

Note: After scipy 1.3, scipy.misc.imread \ imsave and other functions will be abandoned.

Guess you like

Origin www.cnblogs.com/Terrypython/p/11525763.html