PyTorch-Raspberry-Pi-64-OS
PyTorch-Raspberry-Pi-64-OS copied to clipboard
RPI 5 install not supported
I tried to install torch-1.11.0 on RPI 5 but it failed:
pip install torch-1.11.0a0+gitbc2c6ed-cp39-cp39-linux_aarch64.whl --no-index ERROR: torch-1.11.0a0+gitbc2c6ed-cp39-cp39-linux_aarch64.whl is not a supported wheel on this platform.
I followed the instruction for RPI 4 OS 64 bit
I think you are using Bookworm. It comes with Python 3.11, not the 3.9 version used by the wheels. You can easily install pytorch on the RPi 5 with the following command:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
Do not forget to use a virtual environment.
yeah I did that and now everything seams to work. thx