我已经使用这个命令安装Keras:如何卸载Keras?
sudo pip install keras
它正确安装并能正常工作,直到我试图导入应用模块:
from keras.applications.vgg16 import VGG16
Using Theano backend.
Couldn't import dot_parser, loading of dot files will not be possible.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named applications.vgg16
我碰到this link which recommends从卸载Keras并直接安装Keras GitHub的:
sudo pip install git+https://github.com/fchollet/keras.git
之前从GitHub重新安装Keras,我尝试使用Keras这COMM来反安装而但它抛出这个错误:
sudo pip uninstall keras
Can't uninstall 'Keras'. No files were found to uninstall.
的可能的复制[蟒蛇setup.py卸载(http://stackoverflow.com/questions/1550226/python-setup-py-uninstall) –
这可能有助于:http://stackoverflow.com/questions/35905264/keras-importerror-no-module-named-data-utils – YOBA
它不建议使用sudo与pip,'pip install --user packagename'是更好。 –