Pytorch installation on raspberry pi fails

Hi all,

I have the follwoing problem. I would like to install pytorch on my raspberry pi. My installed Python version is 3.9.2 which should be compatible with Pytorch. I use the following command to install Pytorch:

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

Unfortunately I get the following error:

ERROR: Could not find a version that satisfies the requirement torch
ERROR: No matching distribution found for torch

I grasped the internet, however did not find a solution to my problem. It seems also that my Python Version should be supported. Any ideas what might went wrong?

Hello,

I was googling with the same error.
My issue was that I have 32bit Raspbian OS installed, not 64bit.

$ getconf LONG_BIT
32

you can see my gcc target is arm-linux-gnueabihf, not aarch64-linux-gnu

 $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/12/lto-wrapper
Target: arm-linux-gnueabihf

Can you check if your Pi is running 64bit OS?

Kind regards,

Jae