No module named ‘Keras.utils.visualize
Reason: keras upgrade
This test is generated under ubuntu. Open the library folder, the path home/xxx/xxconda/envs/environment name/lib/pythonx.x/site-packages/keras, you can see that there is no visualize file, and there is a vis-utils under utils, which corresponds to That's it, just look at the required functions defined in the document. Modify the corresponding code.
from keras.utils.visualize_util import plot
change into
from keras.utils.vis_utils import plot_model
Installation method under ubuntu
Please install in the following order:
sudo pip install graphviz(安装接口)
sudo apt-get install graphviz(安装软件本身)
sudo pip install pydot==1.1.0
sudo pip install keras
tensorflow
Error message: cannot import name 'get_config' from 'tensorflow.python...
Find the corresponding folder, click on the document and find that it is defined as config instead of get_config, largely due to the version mismatch, so use someone else's It is important to keep the same version of the library while code.