如何不在.pypirc中存储密码?

2024-05-12 18:25:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用CloudPypi设置一个私有Pypi云。我真的不想把我的密码存储在pypirc中。我希望每次上传包时都能提示输入密码。在

Python document about .pypirc中,它说:

password, that will be used to authenticate. If omitted the user will be prompt to type it when needed.

但是你怎么在这里“省略”密码呢?我试着把密码一行留空,试着做“密码:”或“密码:密码”。这些都不管用。在


Tags: topypi密码ifthatpasswordbedocument