#๐Ÿ”’ Pip not installing torch

45 messages ยท Page 1 of 1 (latest)

lucid owl
#

Hello, i was trying to run deepseek locally on my android phone. Yes you can run llms on phone but i havnt tried such a big one but now that i am trying to do so i am unable to install the dependencies mentioned in requirements.txt which is somewhat weird because.

Error:

pip install -r requirements.txt
ERROR: Could not find a version that satisfies the requirement torch==2.4.1 (from versions: none)
ERROR: No matching distribution found for torch==2.4.1
vagrant orchidBOT
#

@lucid owl

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fleet kestrel
#

Maybe your python is too new for torch 2.4.1 (which sounds like it's hardwired into the requirements.txt file.

2.11.0 is current. https://pypi.org/project/torch/

Maybe edit the requirements file and just remove the ==2.4.1 part of the torch line and retry?

lucid owl
fleet kestrel
#

Yah, but maybe it's out of date.

#

A bunch of things ship with specific versions because it means less chance of updates breaking the main project (because changes).

lucid owl
#

Yeah, but it still gave the same error

fleet kestrel
#

Just try pip install torch and see if that works. If so, remove the version from the requirements.

lucid owl
#
pip install -r requirements.txt
ERROR: Could not find a version that satisfies the requirement torch==2.11.0 (from versions: none)
ERROR: No matching distribution found for torch==2.11.0
fleet kestrel
#

Oh, ugh.

#

Try a bare pip install torch, see what it does.

lucid owl
# fleet kestrel _Exactly_ the same error?

Already tried that some other error

pip install torch
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
fleet kestrel
#

Does pip work for othe things?

lucid owl
fleet kestrel
#

Actually, looking at torch's distribution files here: https://pypi.org/project/torch/#files

I only see wheels for specific architectures. Only linux and Mac, not android.

lucid owl
#

Hm.. i am capable of installing torch from pydroid3 or pyramide they work

fleet kestrel
#

Hmm. Can you find out what version of torch they use and how they did their install?

fleet kestrel
#

I'm operating in a bit of a void here and only making suggestions. I'm not an android person and I've never used pytorch or torch (same thing I think).

lucid owl
#

torch 2.6.0

fleet kestrel
#

Well try that. Did they use pip to get it?

frozen umbra
#

can you link the requirements?

#

would be interesting to see what else they have there

lucid owl
#

Didnt work tho same error

lucid owl
lucid owl
frozen umbra
#

they only support python 3.10 it seems

#

with anything else you're on your own (from their PoV)

fleet kestrel
frozen umbra
#

if you can't install an older Python version, you can try your luck with newer Pytorch versions but there have been known to be issues with that

fleet kestrel
#

... for conda ๐Ÿ™‚ I don't know if that will translate.

lucid owl
#

I am using termux btw

frozen umbra
#

--index-url is par for the course when installing pytorch

lucid owl
#

Is it possible for deepseek to not run locally on android??

fleet kestrel
#

Some home server?

lucid owl
frozen umbra
#

have you also tried to just install the earliest compatible versions?

#

that could also work

vagrant orchidBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.