Global installation of Python apps#
Education objectives
different types of Python apps
UV and Pixi
Python applications are Python software that should not be used as a Python library. These can be:
CLI: Command-line interface
Examples: pip, black, pytest, httpie, youtube-dl,
TUI: Terminal User Interface.
Examples: Bpytop, Posting, …
GUI: Graphical User Interface.
Examples: Dropbox client, Spyder, …
As for other type of software, one can use package manager specific to the OS (like apt, winget, …) or installers provided by the maintainers of the software (see for example https://docs.spyder-ide.org/current/installation.html).
However, it is also very convenient to use modern tools as UV and Pixi, which install application in a dedicated environment (Python or conda, respectively).
Note
One can also mention Pipx which works similarly, but it seems a bit outdated now that UV exits.
Examples with UV
uv tool install httpie
# specify other packages to be installed in the venv & Python version
uv tool install mercurial --with hg-git,hg-evolve -p 3.13
Examples using Pixi
Pixi installs conda packages.
# multiple tools at once
pixi global install pixi-pack rattler-build
# ipython with matplotlib and pandas
pixi global install ipython --with matplotlib --with pandas
# even better!
pixi global install --environment data-science --expose jupyter --expose ipython jupyter numpy pandas matplotlib ipython