python - 尝试将包上传到 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”站点来测试上传,但常规站点也不起作用。
解决方案
您需要像这样上传python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
,并确保您在 PyPI 中有帐户并测试 PyPI
推荐阅读
- django - Django - 内联表单集保存多行
- google-forms - 根据输入的序列号自动填充 Google 表单字段
- elasticsearch - 根据 Logstash 中的字段插入不同的索引
- django - django form.errors 显示“此字段是必需的!” 使用 form.isvalid 运行 modelform 验证后
- android - Gradle:在 Kotlin DSL 中使用 ext 函数
- php - PHP:推断此方法链的返回类型
- unit-testing - 在函数文字(scopelint)中使用范围范围`x`上的变量
- firefox - Jmeter 证书在大多数站点中不起作用
- javascript - 为什么 webpack 不创建/更新 .css 文件?
- django - 如何在 Django 中为模型计算两个外键