2023-07-21 16:45:27.375 ERROR (SyncWorker_4) [homeassistant.util.package] Unable to install package torch: ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
I’m kinda stumped at the first hurdle. I can install it just fine outside of HA. I am definitely not a Python guru.
PS: Running on a Pi4. Home Assistant 2023.7.1 Supervisor 2023.07.1 Frontend 20230705.1 - latest.
I’ve made a small amount of progress, but would still love some help. I understand that requirements entries are pip compatible strings, and I see there is an HA example that pulls directly from git, rather than whatever repo HA is using:
Hey @kerryland the reason pip complains that it can’t find a matching distribution for pytorch is because the home assistant core docker container running on your raspberry pi is built on top of Alpine linux, and PyTorch isn’t currently compatible with Alpine linux. You can read some more context about the problem in this GitHub issue.
I ran into the same issue trying to create a Home Assistant addon that uses pytorch as a dependency.