首页 > 解决方案 > 尝试将包上传到 PyPI 时出现“500:内部服务器错误”

问题描述

我一直在尝试在 PyPI 上上传我的包,但我收到错误“收到”500:内部服务器错误“包上传似乎失败。重试 1 次,共 5 次”这并没有告诉我可能出了什么问题。

我的包裹可以从以下位置找到:

https://github.com/hcolaux/famn_opt

我有 anaconda 1.9.7 和 conda 4.6.14,我在 Anaconda Powershell Prompt 中输入了命令:

setup.py sdist bdist_wheel
twine upload --repository-url https://test.pypi.org/legacy/ dist/*

请注意,我正在使用“test.pypi.org”站点来测试上传,但常规站点也不起作用。

标签: pythonpypi

解决方案


您需要像这样上传python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*,并确保您在 PyPI 中有帐户并测试 PyPI


推荐阅读