Skip to main content
 首页 » 编程设计

python之Twine 在不提示输入密码的情况下挂起

2024年12月31日7xing901022

我正在尝试使用最近在 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。