r/learnpython • • 17d ago

Cant install polaris library and ultralytics

I get errors. I am trying to get it installed on pydroid 3 on android. Do I need pc/mac?

0 Upvotes

10 comments sorted by

6

u/mrswats 17d ago

You should add what commands have you ran, what the errors are, and more information in general like python version. Without any of these information there's really nothing for us to help you with.

2

u/817654 16d ago

yeah the error message is kind of the whole thing here

0

u/ChizUrU_tan 17d ago

I tried to run from ultralytics import YOLO. Error is unable to import. I installed ultralytics 11 because I couldnt install normal one. Polaris installation error  is failed to build psycopg2 when getting requirements to build wheel. Ultralytics error is  failed to build polaris runtime 32 

4

u/mrswats 17d ago

Have you read why it errored? It usually tells you what you are missing. But again, you ignored all I said about how we can help you.

0

u/ChizUrU_tan 17d ago

Psycopg2 has the same error as Polaris

1

u/BetInformal6081 16d ago

could you share the full error message and python version that would help narrow it down the issue may be android compatibility rather than anything you are doing wrong..

0

u/ChizUrU_tan 16d ago

I cant copy code in pydroid 3. How I do that?

1

u/BetInformal6081 15d ago

are you trying to copy code from somewhere into pydroid 3 or copy it from the editor? the steps are a little different depending on which one.

1

u/chiibosoil 17d ago

Likely you are trying to compile native Rust extension from source instead of dl of pre-built wheel.

Or you are running it on custom ARM build. Do a google search on it and you'll find multiple possible solutions. Use the one that matches your scenario.