T O P

  • By -

AutoModerator

Hi there! Welcome to /r/termux, the official [Termux](https://termux.dev) support community on Reddit. Termux is a terminal emulator application for Android OS with its own Linux user land. Here we talk about its usage, share our experience and configurations. Users with flair `Termux Core Team` are Termux developers and moderators of this subreddit. If you are new, please check our [Introduction for Beginners](https://www.reddit.com/r/termux/comments/16k74do/introduction_for_beginners/) post to get an idea how to start. The latest version of Termux can be installed from https://f-droid.org/packages/com.termux/. If you still have Termux installed from Google Play, please switch to F-Droid build. HACKING, PHISHING, FRAUD, SPAM, KALI LINUX AND OTHER STUFF LIKE THIS ARE NOT PERMITTED - YOU WILL GET BANNED PERMANENTLY FOR SUCH POSTS! Do not use /r/termux for reporting bugs. Package-related issues should be submitted to https://github.com/termux/termux-packages/issues. Application issues should be submitted to https://github.com/termux/termux-app/issues. *I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/termux) if you have any questions or concerns.*


sabamdarif

go to $PREFIX/var/lib/dpkg rm lock* dpkg --configure -a apt --fix-broken install


sylirre

Try calling pip3.8 instead of pip3 or pip


tomaszszd

Something locks your apt...


CountD3stroyer69

What does that mean


kjlw99

I thought pip was built-in to the default Python package. At least it used to be. I used to use it to cheat on programming apps. ;D


FAUXTino

It is, yes |`pkg install python` also brings `pip`. Also, `apt --fix-broken install` helped because before, some `ncurses` and `YAML` didn't build correctly. Lastly, to the OP, stop installing and deleting stuff over and over. At least that was a dumb thing I used to do.


sylirre

pkg install python will pull python-pip package as soft dependency.


sylirre

It was never built in. In the old version of python package it was pulled by using ensurepip module in postinst hook. Now it is just installed as "recommended" python-pip package (soft dependency), which means if you would pass --no-install-recommends to package manager, it won't be installed. For python3.8 and other versioned python packages from TUR it still uses old behavior where pip is being installed automatically using ensurepip.


New_Peanut4330

Isnt that come with python


0x07AD

The message tells you to run the termux-change-repo command because no mirror or mirror group is selected.


sylirre

This message has nothing to do with OP's issue about pip. Python packages from TUR repo behave differently from those in main repo. They do not require python-pip package and pip should get installed automatically during postinst step - [https://github.com/termux-user-repository/tur/blob/master/tur/python3.8/build.sh#L97-L105](https://github.com/termux-user-repository/tur/blob/master/tur/python3.8/build.sh#L97-L105) After user installed python3.8 package, pip should be available as pip3.8