方法一:
pip install git+https://www.github.com/keras-team/keras-contrib.git
若以上方法不行:
法(1)
git clone https://www.github.com/keras-team/keras-contrib.git
cd keras-contrib
python setup.py install
法(2)
sudo pip install git+https://www.github.com/keras-team/keras-contrib.git
法(3)
git clone https://www.github.com/keras-team/keras-contrib.git
cd keras-contrib
python convert_to_tf_keras.py
USE_TF_KERAS=1 python setup.py install
原因是木有你的那种安装方式,才有前两种安装方式for keras;最后一种是tf-keras