我正在尝试使用最近在 conda 环境 (Miniconda3) 下安装的 twine
将新包的 tarball 和 wheel 上传到 PyPI。输入用户名后,我希望系统提示我输入密码,但这种情况从未发生,一切都挂起。
$ twine --version
twine version 1.11.0 (pkginfo: 1.4.2, requests: 2.19.1, setuptools: 40.2.0,
requests-toolbelt: 0.8.0, tqdm: 4.25.0)
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Uploading distributions to https://test.pypi.org/legacy/
Enter your username: my_user_name
可能导致这种意外行为的原因是什么?
最佳答案
我可以通过使用 DOS 控制台(即 cmd.exe
)解决这个问题。
如果有人可以评论为什么这个身份验证步骤在 Windows 的 git/bash 控制台中没有按预期工作那么请插话,因为我想修复它(希望是配置设置?)所以我不我的工作流程中的这一步必须转移到 DOS。
关于python - Twine 在不提示输入密码的情况下挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52229497/