install pytorch

13 Replies
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View
infu
infu3y ago
hmmm that is strange - looks like your app diddnt install dependency? maybe try manually installing python torch module - not sure about spicy details as I havent tried it
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View
infu
infu3y ago
I thought about from the pip level itself
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View
infu
infu3y ago
hmmm seems like that torch module isnt named just torch hmmm
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View
Ravener
Ravener3y ago
Maybe the packaging was not done properly, there was a similar issue with python-pygame before gimme a sec to check some stuff
Ravener
Ravener3y ago
Seems like the package got disabled because it doesn't build in python3.11 https://github.com/termux/termux-packages/commit/a9c646f6b42b3f026d5272450d72a03543e4201b
GitHub
python-torch{,vision}: Disabled · termux/termux-packages@a9c646f
python-torch does not build against Python 3.11. python-torchvision depends on python-torch.
Ravener
Ravener3y ago
So you probably installed an older build for python3.10 hence it probably went to the usr/lib/python3.10 directory and won't be detected by python3.11 You can check with pkg files python-torch if you see python3.10 paths then yeah it's old, for py3.10 only.
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View
Ravener
Ravener3y ago
tur has python3.10 so if you need to you can also install python3.10 and use it with that in the meantime.
$ pkg install tur-repo
$ pkg install python3.10
$ python3.10 myscript.py
$ pkg install tur-repo
$ pkg install python3.10
$ python3.10 myscript.py
Unknown User
Unknown UserOP3y ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?