解决Ubuntu系统yagmail提示错误keyring.errors - Xiao-Le Deng (邓小乐)

Xiao-Le Deng (邓小乐)

HomeResearchPublicationsToolsDaoLifeTagsSearchAbout

解决Ubuntu系统yagmail提示错误keyring.errors

2023-12-06
#Python #Unix #Ubuntu

错误提示:

keyring.errors.InitError: Failed to create the collection: Prompt dismissed..

解决方案:在终端输入以下内容

export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring

参考

  • python 3.x - Error trying to register email credentials with Yagmail and Keyring - Stack Overflow
  • python - Poetry: Failed to unlock the collection - Stack Overflow
——
2012 – 2025 © Xiao-Le Deng · Powered by Simple Style