#install pytorch

26 messages · Page 1 of 1 (latest)

solid bison
#

Hi! I've installed the python-torch package and cannot import torch in python

solid bison
#

This might help too it isn't coming up in pip

green mist
#

maybe try manually installing python torch module - not sure about spicy details as I havent tried it

solid bison
#

You mean from source?

#

I guess I should give that ago

green mist
#

I thought about from the pip level itself

solid bison
#

Doesn't seem to work and won't let me install

green mist
#

hmmm seems like that torch module isnt named just torch

#

hmmm

solid bison
#

If i do install pytorch it tells me to install torch

#

Very bazaar

#

Might need to just install ubuntu :/

sage hazel
#

Maybe the packaging was not done properly, there was a similar issue with python-pygame before

#

gimme a sec to check some stuff

#

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.

solid bison
#

Oh interesting thank yoy very much

#

Let me check

#

Yeah you're right!

sage hazel
#

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
solid bison
#

great that sorts it thank you!

fading hare
#

RIP :(

N: Skipping acquire of configured file 'tur-continuous/binary-arm64/Packages' as repository 'https://tur.kcubeterm.com tur-packages InRelease' doesn't support architecture 'arm64' N: Skipping acquire of configured file 'tur-on-device/binary-arm64/Packages' as repository 'https://tur.kcubeterm.com tur-packages InRelease' doesn't support architecture 'arm64'