Installing rpds-py (0.13.2): Failed
KeyringLocked
Failed to unlock the collection!
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/keyring/backends/SecretService.py:67 in get_preferred_collection
63│ raise InitError("Failed to create the collection: %s." % e)
64│ if collection.is_locked():
65│ collection.unlock()
66│ if collection.is_locked(): # User dismissed the prompt
→ 67│ raise KeyringLocked("Failed to unlock the collection!")
68│ return collection
69│
70│ def unlock(self, item):
71│ if hasattr(item, 'unlock'):
解决办法很简单
cd ~
vim .bashrc
然后在末尾添加
export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
然后
source .bashrc
再运行poetry install就ok了