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

Had to do this too. Seems the docs are out-of-date as of now.

– bvs

That is one solution.
On my part I just use ‘pipx’ instead of ‘pip’ it’s done for that.

```
sudo apt install pipx grep sed at wget libusb-1.0-0-dev libudev-dev openssh-client gnupg zbar-tools
pipx install --system-site-packages onlykey-agent
pipx install --system-site-packages onlykey
. $HOME/.profile
```