树莓派深度学习环境安装Python+TensorFlow+keras+pytorch

1、 Python环境配置:参考
https://blog.csdn.net/weixin_43741611/article/details/84261582
2、 安装tensorflow-1.12.0-cp35-none-linux_armv7l.whl,地址:
https://github.com/lhelontra/tensorflow-on-arm/releases
步骤:https://github.com/samjabrahams/tensorflow-on-raspberry-pi

3、 安装keras。步骤:https://blog.csdn.net/perry0418/article/details/80994840
使用pip3命令安装。sudo pip3 install Keras
4、 opencv安装配置,> 版本:‘3.4.4’
教程:使用miniconda进行安装
https://medium.com/@lin7lic/在raspberry-pi-3-安裝python-3-opencv-34c9740d78e4

sudo pip3 install opencv-python
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install python3-pyqt5
sudo apt-get install libqt4-test
解决1:ImportError: No module named ‘cv2’
https://www.raspberrypi.org/forums/viewtopic.php?t=211859
解决2; ImportError: libjasper.so.1: cannot open shared object file: No such file or directory
https://github.com/amymcgovern/pyparrot/issues/34

5、 pytorch安装配置。教程:https://haoyu.love/blog509.html
sudo pip3 install torchvision-raspi

你可能感兴趣的:(工具)