Install 64-bit system
- 1. You can use the official burning software of Raspberry Pi: imager
- 2. You can download the 64-bit system on the Raspberry Pi official website in advance, and use balenaEtcher to burn
Install pytorch
- Go to the official website to download the pytorch package with python3.9 ( because the raspberry pie is installed with python3.9 by default ) (you can also use the one I provided)
-
URL: torch PyPI
- Link: https://pan.baidu.com/s/1ImOo7-fkbBMl9g1pGKkNeQ?pwd=df2b
Extraction code: df2b - Put the package into the Raspberry Pi (you can also download it directly to the Raspberry Pi, but the download will be slower if you don’t change the source)
- Install dependencies, don't change the source (otherwise there are so many errors that you doubt your life)
- If cython is not installed successfully, try: sudo pip3 install cython
install toychvision
- pip install + package name, eg: pip3 install torch-1.13.0a0+git7c98e70-cp39-cp39-linux_aarch64.whl
- Link: https://pan.baidu.com/s/1ODoDFbOLAf8TFkOmQK_Gdw?pwd=1550
Extraction code: 1550
python
import torch
- If the import command is not found, the pytorch environment is not installed successfully, just install openmpi
install openmpi
- Link: https://pan.baidu.com/s/1tSfTI2eAoQgACrI0VTP3iA?pwd=b0rc
Extraction code: b0rc - pip install + package
- I get an error: libiomp5.so: cannot open shared object file: No such file or directory
- Solution:
sudo apt-get update
apt list --upgradable
sudo apt upgrade
sudo apt-get install libomp-dev
sudo apt install libopenmpi-dev openmpi-doc
install opencv
pip3 install opencv-python
pip3 install opencv-contrib-python