我正在尝试使用以下代码设置Keras:
from keras.layers.core import Dense, Activation, Dropout
from keras.layers.recurrent import LSTM
from keras.models import Sequential
import lstm, time #helper libraries
不幸的是,它给了我两个错误信息,但我无法理解:
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib/_bootstrap.py:205: RuntimeWarning: compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.6
return f(*args, **kwds)
和
ModuleNotFoundError Traceback (most recent call last)
ModuleNotFoundError: No module named 'lstm'
预先感谢, 维克多
答案 0 :(得分:1)
使用以下两项之一:
pip install seq2seq-lstm
或
pip install phased-lstm-keras