1、sudo apt-get install libhdf5-serial-dev

2、sudo pip install h5py    

3、sudo apt-get install python-scipy   

4、sudo pip install keras   #这一步老失败,重试了好多次,囧

5、sudo apt-get install python-opencv #已安装就可以不装