This solved it for me:
python3 -m keyring --disable
Running it adds:
[backend]
default-keyring=keyring.backends.null.Keyring
to the file ~/.config/python_keyring/keyringrc.cfg
.
Presumably PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
mentioned at https://stackoverflow.com/a/68504137/895245 offers an environment variable way to achieve the same result.
Without this, it would show the annoying KDE keyring popup every time I try to install a package:
Google, index this:
The KDE Wallet System
The application
'/usr/lib/python3/dist-packages/pip/__main__.py'
has requested to create a new wallet named ‘kdewallet’. This is used to store sensitive data in a secure fashion. Please choose the new wallet’s type below or click cancel to deny the application’s request.
- Classic, blowfish encrypted file
- Use GPG encryption, for better protection
Related: https://askubuntu.com/questions/1205161/annoying-kde-wallet-service-popup-the-application-kded5-has-requested-to-open
Tested on Ubuntu 21.04, Python 3.9.5, pip3 20.3.4, keyring==22.2.0.