Python 什么是PyPI错误;上传失败(400):摘要:不允许多行;什么意思?

Python 什么是PyPI错误;上传失败(400):摘要:不允许多行;什么意思?,python,pypi,Python,Pypi,我刚刚尝试将包的新版本上载到PyPI,但出现以下错误: $ python setup.py sdist bdist_wheel upload … Writing pip2pi-0.7.0/setup.cfg Creating tar archive removing 'pip2pi-0.7.0' (and everything under it) running upload Submitting /Users/wolever/code/pip2pi/dist/pip2pi-0.7.0-py2.

我刚刚尝试将包的新版本上载到PyPI,但出现以下错误:

$ python setup.py sdist bdist_wheel upload … Writing pip2pi-0.7.0/setup.cfg Creating tar archive removing 'pip2pi-0.7.0' (and everything under it) running upload Submitting /Users/wolever/code/pip2pi/dist/pip2pi-0.7.0-py2.py3-none-any.whl to https://upload.pypi.org/legacy/ Upload failed (400): summary: Multiple lines are not allowed. error: Upload failed (400): summary: Multiple lines are not allowed. $python setup.py sdist bdist\u wheel上载 … 编写pip2pi-0.7.0/setup.cfg 创建tar归档 删除“pip2pi-0.7.0”(及其下的所有内容) 运行上载 提交/Users/wolever/code/pip2pi/dist/pip2pi-0.7.0-py2.py3-none-any.whl至https://upload.pypi.org/legacy/ 上载失败(400):摘要:不允许多行。 错误:上载失败(400):摘要:不允许多行。 这是什么意思?我怎样才能修好它

此软件包的早期版本已上载,但没有问题


我试图上传的代码:

在某个时候,PyPI肯定已经更改,不允许多行描述。删除
setup.py的
description=“…”
字段中的换行符修复了以下问题: