我已經使用這個命令安裝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'是更好。 –