PyTorch 1.3 wheels for Raspberry Pi (Python 3.7)

LeviViana: <p>I’ve made it available here: <a href="https://wintics-opensource.s3.eu-west-3.amazonaws.com/torch-1.3.0a0%2Bdeadc27-cp37-cp37m-linux_armv7l.whl" rel="nofollow noopener">https://wintics-opensource.s3.eu-west-3.amazonaws.com/torch-1.3.0a0%2Bdeadc27-cp37-cp37m-linux_armv7l.whl</a>.</p>
<p>Have fun !</p>

Peerawit_Naprae: <p>it’s works, thanks you</p>

lucam: <p>It works! Thank you <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>

skyline: <p>I run <code>pip3 install *.whl</code> of your wheels ,but when I <code>import torch</code> in my code,it says <code>ImportError: No module named torch</code></p>
<p>How Can I solve this problem?</p>

skyline: <p>Oh I should run python3 thanks it works</p>

LeviViana: <p>Torch 1.4 wheels available here -&gt; <a href="https://discuss.pytorch.org/t/installing-pytorch-on-raspberry-pi-3/25215/14" class="inline-onebox">Installing pytorch on raspberry pi 3</a> !</p>

louisabraham: <p>Hi, do you have wheels for Python 3.8 or could you explain me how you compiled it?</p>
<p>I’m using a Rockchip processor with Manjaro. <a href="https://github.com/pytorch/pytorch/issues/35049" rel="nofollow noopener">PyTorch doesn’t compile for me</a> and it is really a pain to downgrade to python 3.7.</p>

LeviViana: <p>For the moment, I don’t have access to the RPI where I’ve made the source code modifications (I’m under lockdown and far from my office). But as far as I can remember, I just changed the commit of <code>third_party/protobuf</code> to something more recent. I did this because I noticed an error coming from atomic types, and I saw an issue in the protobuf repo (I can’t remember which one) related to the same kind of problem. So naturally I hooked PyTorch source code to a commit fixing the issue.</p>
<p>Just to make things clear, I don’t suffer from any kind of memory loss desease (at least I can’t remember being diagnosed with it <img src="https://discuss.pytorch.org/images/emoji/apple/smile.png?v=9" title=":smile:" class="emoji" alt=":smile:">). If I don’t remember anything it is because I actually did it in September 2019 (for compiling torch 1.3), and I just kind of did the same steps some weeks ago without thinking too much, and it just worked.</p>
<p>BTW, the binaries generated by my compilation aren’t perfect, for instance, quantization isn’t working. But the main torch functionalities are working just fine, so I think it is useful making the binaries available for everyone to use.</p>

Sundar_Krishna: <p>Thank it successfully works , any wheel files for torchvision sir? <a class="mention" href="/u/leviviana">@LeviViana</a></p>

LeviViana: <p>Hi <a class="mention" href="/u/sundar_krishna">@Sundar_Krishna</a>, nope I  didn’t compile it. I guess it should be easy to compile it from source, just cloning the repo and running <code>python3 setup.py install</code>.</p>
<p>If it doesn’t work, I’d suggest you to post an issue at the repo, or contacting <a class="mention" href="/u/fmassa">@fmassa</a> <img src="https://discuss.pytorch.org/images/emoji/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>

Sundar_Krishna: <p>Actually I went to piwheels website to download torchvision , pip installed it and was successful! Anyways thank you so much sir! <a class="mention" href="/u/leviviana">@LeviViana</a></p>

Kevin_DESCHARRIERES: <p>Hello,</p>
<p>I tried to perform the installation on a RPI4 with the armv7l but it doesn’t work. On which system did you perform it?</p>
<p>Sincerely</p>

tom: <p>For <a href="https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2020-08-24/" rel="nofollow noopener">Raspberry Pi OS 64bit</a>, <a href="http://mathinf.com/pytorch/arm64/" rel="nofollow noopener">I put up wheels of PyTorch 1.6</a>.</p>
<p>Best regards</p>
<p>Thomas</p>

suhridh: <p>Hi, here’s my wheel for Pytorch 1.6.0 build on Raspberry Pi 4 (should work for Pi 3 too I assume, have not verified.)</p>
<p><a href="https://drive.google.com/file/d/1U9xwHsECjatOkQASQza9I8muQmOUAF9G/view?usp=sharing" rel="nofollow noopener">Link to Download</a></p>

Sreerag_Bosch: <p>I am having trouble with one of the packages “pytorch_lightning”, when I intalled the pytorch in Raspberry pi. I was trying to execute on python pgm where there was a package named “from pytorch_lightning.metrics.functional import accuracy”. I can’t find this package to install and without this I am not able to execute the file either. need a little help!</p>