上传软件包时是否遇到过类似的错误?
$ twine upload dist/*
Uploading distributions to https://upload.pypi.org/legacy/
Enter your username: MyUsername
Enter your password: ********
TypeError: expected string or bytes-like object
编辑:我再次遇到了同样的错误,但这一次为了修复它,我升级了Twine并且它又开始工作了。