Python Interpreters marked externally-managed since Debian 12 “bookworm”

If you wish to install onlykey-cli & onlykey-agent you must create a virtual environment now using
python3 -m venv path/to/venv

Debian Install with dependencies:

$ sudo apt update && sudo apt upgrade
$ sudo apt install python3-pip python3-tk libusb-1.0-0-dev libudev-dev python3-venv
$ python3 -m venv /path/to/venv
$ /path/to/venv/bin/pip3 install onlykey
...

Info:
Debian bookworm release-notes #python3-pep-668
Python » PEP Index » PEP 668