https://gitee.com/likecy/garbage-raspi
树莓派部署tensorflow
- python3
- 安装tensorflow,keras等依赖
pip3 install tensorflow==1.13.1
pip3 install keras==2.3.1
之后,使用Keras的时候报:ImportError: `save_model` requires h5py. 那么装一下h5py:
结果还是报一样的错,搜了一下,发现这个解决方案靠谱:
sudo apt-get install libhdf5-dev
然后再运行一遍:
sudo pip install --upgrade h5py