Exception when importing the tcn module
annebierhoff opened this issue · 1 comments
annebierhoff commented
When I try to execute from tcn import TCN
, I get the follow Error:
Exception has occurred: ImportError
cannot import name 'LayerNormalization' from 'tensorflow.keras.layers'
My keras version is 2.3.1 and my tensorflow Version is 1.13.1.
Can someone help me?
Collecting keras-tcn
Using cached keras_tcn-3.0.1-py3-none-any.whl (11 kB)
Requirement already satisfied: gast==0.2.2 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras-tcn) (0.2.2)
Requirement already satisfied: keras>=2.3.1 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras-tcn) (2.3.1)
Requirement already satisfied: numpy>=1.18.1 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras-tcn) (1.18.2)
Requirement already satisfied: h5py in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (2.9.0)
Requirement already satisfied: scipy>=0.14 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (1.2.1)
Requirement already satisfied: keras-applications>=1.0.6 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (1.0.7)
Requirement already satisfied: six>=1.9.0 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (1.12.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (1.0.9)
Requirement already satisfied: pyyaml in c:\users\Anne\appdata\local\programs\python\python37\lib\site-packages (from keras>=2.3.1->keras-tcn) (5.1)
Installing collected packages: keras-tcn
Successfully installed keras-tcn-3.0.1
philipperemy commented
@annebierhoff try to use tensorflow>=2.0
it should work.