我对此很陌生,尝试使用 Poetry 包将包发布到 pypi.org。 在我的本地构建正在工作,我可以导入包测试运行它,一切都很好。
但是当我尝试将其发布到 pypi.org 时,我收到以下错误 - 根据我关注的文章Link,它应该提示我输入我的 pypi 帐户 ID 和密码,但它没有然后给出错误:
Publishing gsst (0.2.2) to PyPI
- Uploading gsst-0.2.2-py3-none-any.whl 0%
- Uploading gsst-0.2.2-py3-none-any.whl 100%
然后出现这个错误--
HTTP Error 403: Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information. | b'<html>\n <head>\n <title>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n \n <body>\n <h1>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n Access was denied to this resource.<br/><br/>\nInvalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.\n\n\n \n'
在我运行 --poetrypublish 命令后,CLI 应该提示我输入 pypi、ID 和密码。为什么它会跳过它然后身份验证失败。