麻线上载TypeError:预期的字符串或类似字节的对象 [英] Twine upload TypeError: expected string or bytes-like object
本文介绍了麻线上载TypeError:预期的字符串或类似字节的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当您尝试上传软件包时,有人出现这样的错误吗?
Has anybody got an error like this when you try to upload your package ?
$ 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,然后又开始工作了.
Got the same error again but this time to fix it I upgraded twine and it started working again.
推荐答案
更新麻线为我解决了这个问题.为此,在执行twine upload dist/*
之前执行以下命令:
Updating twine solved the problem for me. For this, execute the following command before doing twine upload dist/*
:
python3 -m pip install --user --upgrade twine
python3 -m pip install --user --upgrade twine
这篇关于麻线上载TypeError:预期的字符串或类似字节的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文