在python -m twine upload dist/* --verbose更新包的时候
手动输入用户名和api,但是还是报错。
我写成我已知的所有格式的文件放在用户目录下,问题依旧。
root@famCircle:python -m twine upload dist/* --verbose
Uploading distributions to https://upload.pypi.org/legacy/
INFO dist/famCircle-0.2.6-py3-none-any.whl (120.2 KB)
INFO dist/famCircle-0.2.6.tar.gz (81.9 KB)
INFO Querying keyring for username
Enter your username: charles_kiko
INFO Querying keyring for password
WARNING Error getting password from keyring
Traceback (most recent call last):
File "/root/anaconda3/lib/python3.10/site-packages/twine/auth.py", line 74, in get_password_from_keyring
return cast(str, keyring.get_password(system, username))
File "/root/anaconda3/lib/python3.10/site-packages/keyring/core.py", line 56, in get_password
return get_keyring().get_password(service_name, username)
File "/root/anaconda3/lib/python3.10/site-packages/keyring/backends/fail.py", line 28, in get_password
raise NoKeyringError(msg)
keyring.errors.NoKeyringError: No recommended backend was available. Install a recommended 3rd party backend package; or, install
the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.
Enter your password:
INFO username: charles_kiko
INFO password: <hidden>
Uploading famCircle-0.2.6-py3-none-any.whl
100% ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 131.6/131.6 kB • 00:00 • 470.1 kB/s
INFO Response from https://upload.pypi.org/legacy/:
403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.
INFO <html>
<head>
<title>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more
information.</title>
</head>
<body>
<h1>403 Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.</h1>
Access was denied to this resource.<br/><br/>
</body>
</html>
ERROR HTTPError: 403 Forbidden from https://upload.pypi.org/legacy/
Invalid or non-existent authentication information. See https://pypi.org/help/#invalid-auth for more information.
令牌创建应该没问题呀
请问各位有什么解决办法嘛?