モジュールをインポートしようとしていますkeras.utils.data_utils
が、うまくいきません。ただし、このモジュールはこちらにあります。それは確かに存在しています。keras.models
や などの他のモジュールをインポートできるのに、インポートできないのはなぜkeras.layers.core
ですか?
cliu@cliu-ubuntu:bin$ python
Python 2.7.9 (default, Apr 2 2015, 15:33:21)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import print_function
>>> from keras.models import Sequential
>>> from keras.layers.core import Dense, Activation, Dropout
>>> from keras.layers.recurrent import LSTM
>>> from keras.utils.data_utils import get_file
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named data_utils
編集:
答えはこちらをご覧ください。