安装python3及开发工具
sudo apt-get install python3 sudo apt-get install python-setuptools安装pip
sudo apt-get install python3-pip安装tensorflow/numpy/scipy
pip3 install numpy pip3 install scipy pip3 install tensorflow修改keras配置文件,可以更改keras后端依赖的框架: vim ~/.keras/keras.json
{ "image_data_format": "channels_last", "epsilon": 1e-07, "backend": "tensorflow", "floatx": "float32" }把tensorflow改为theano, 同时把channels_last改为channels_first, 即可切换后端框架,如下:
{ "image_data_format": "channels_first", "epsilon": 1e-07, "backend": "theano", "floatx": "float32" }