PyTorch-Raspberry-Pi-64-OS icon indicating copy to clipboard operation
PyTorch-Raspberry-Pi-64-OS copied to clipboard

RPI 5 install not supported

Open ciaotesla opened this issue 1 year ago • 2 comments

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

ciaotesla avatar Feb 19 '24 12:02 ciaotesla

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.

Qengineering avatar Feb 19 '24 20:02 Qengineering

yeah I did that and now everything seams to work. thx

ciaotesla avatar Feb 20 '24 09:02 ciaotesla