- 安装Theano (环境参数:Ubuntu 16.04.2 Python 2.7)
- 安装 numpy 和 scipy
- 1.sudo apt-get install python-numpy python-scipy
- 2.sudo pip install Theano
- 如果没有安装pip,请先安装pip
- sudo pip install pyyaml
- sudo apt-get install libhdf5-serial-dev
- sudo pip install h5py
- 至此,所有依赖库都已安装完毕
- sudo pip install tensorflow
- sudo pip install keras
- 键入python,进入python命令行环境
- >>import keras
- 如果输出Using Tensorflow backend. 则证明Keras安装成功