About
pip is the standard installer for Python libraries. It fetches packages from the Python Package Index, dependencies included. Use it to add a library to a project or a virtual environment.
Install it
pkg install python-pip
Run this inside Termux. If the package is already present, pkg will say so and
do nothing.
Commands worth knowing
6 of the invocations you will actually reach for. Tap the copy button to put one on your clipboard.
pip install requests Download and install a library by name, with anything it needs. pip install --upgrade requests Update an already-installed library to its newest release. pip list Show every installed library and its version. pip show requests Print details about one installed library, including where it lives. pip uninstall requests Remove a library you no longer need. pip freeze Print the exact versions of everything installed. Save it to pin a project. Worked example
Run pip show requests and this is what you should see.
$ pip show requests
Name: requests
Version: 2.31.0
Summary: Python HTTP for Humans.
Home-page: https://requests.readthedocs.io
Requires: charset-normalizer, idna, urllib3 The Requires line lists the libraries it pulls in.
Developed by
The Python Packaging Authority .