I cannot install pip

I try to install python pip like

root@RUTC50:~# opkg -e /etc/opkg/openwrt/distfeeds.conf install python3-pip
Installing python3-pip (22.0.4-1) to root…
Downloading https://downloads.openwrt.org/releases/21.02.0/packages/aarch64_cortex-a53/packages/python3-pip_22.0.4-1_aarch64_cortex-a53.ipk
Configuring python3-pip.
root@RUTC50:~# pip
-ash: pip: not found
root@RUTC50:~#

What can I do?

Hi, @Whaak

Welcome to community.

Have you try to type?

# pip3 --version

root@RUTC50:~# pip3
-ash: pip3: not found
root@RUTC50:~#

root@RUTC50:/usr/local/usr/bin# ls -al pip*
lrwxrwxrwx 1 root root 6 Nov 3 23:26 pip → pip3.9
lrwxrwxrwx 1 root root 6 Nov 3 23:26 pip3 → pip3.9
-rwxr-xr-x 1 root root 221 Dec 21 2022 pip3.9

I think pip3.9 is not installed correctly.

Hello.

After the opkg command… and getting a lot of

downloading https….

and

Configuring …

Have you see some error?

type python3 --version

It is working?

type python3 pip --version

It is working?

Have you try?

/usr/local/usr/bin/python3 -m pip install --upgrade pip

root@RUTX12:/usr/local/usr/bin# pip3 --version

pip 25.3 from /usr/local/usr/lib/python3.9/site-packages/pip (python 3.9)

root@RUTX12:/usr/local/usr/bin#

also…

Can you look this url

Greetings,

Many thanks to @Marcelo.Barros for providing his input. Have his suggestions helped resolve the issues you encountered, or would you like some additional assistance?

Best Regards,
Justinas

1 Like

Hi,

I try it

root@RUTC50:/usr/local/usr/bin# python3 --version
Python 3.11.7

root@RUTC50:/usr/local/usr/bin# python3 pip --version
Traceback (most recent call last):
File “/usr/local/usr/bin/pip”, line 5, in
from pip._internal.cli.main import main
ModuleNotFoundError: No module named ‘pip’

root@RUTC50:/usr/local/usr/bin# /usr/local/usr/bin/python3 -m pip install --upgrade pip
/usr/local/usr/bin/python3: No module named pip

the other will also not work

root@RUTC50:/usr/local/usr/bin# opkg install python3-pip
Unknown package ‘python3-pip’.
Package installation encountered an error, removing previously installed packages.
Collected errors:

  • pkg_hash_check_unresolved: cannot find dependency python3 for python3-pkg-resources
  • pkg_hash_fetch_best_installation_candidate: Packages for python3-pkg-resources found, but incompatible with the architectures configured
  • pkg_hash_check_unresolved: cannot find dependency python3 for python3-setuptools
  • pkg_hash_fetch_best_installation_candidate: Packages for python3-setuptools found, but incompatible with the architectures configured
  • pkg_hash_check_unresolved: cannot find dependency python3 for python3-pip
  • pkg_hash_fetch_best_installation_candidate: Packages for python3-pip found, but incompatible with the architectures configured

Your python it is updated, my not… weird.

# python --version
Python 3.9.16

Greetings,

Please follow these instructions to install pip, as it is not included by default in the Python installation.
Setting up Python on RutOS - Teltonika Networks Wiki

Best Regards,
Justinas

Dear Justinas,

Great, your indication works
Thanks and best regards

Werner

This topic was automatically closed after 60 days. New replies are no longer allowed.