通过 Heroku 托管 discord bot - 部署错误

Hosting discord bot through Heroku - deploy error

我正在尝试通过 heroku 托管我的 discord 机器人。我正在用 python 编码。但是从 GitHub 部署时出现以下错误:

-----> Using buildpack: heroku/python
-----> Python app detected
-----> No Python version was specified. Using the buildpack default: python-3.9.6
       To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
-----> Installing python-3.9.6
-----> Installing pip 20.2.4, setuptools 47.1.1 and wheel 0.36.2
-----> Installing SQLite3
-----> Installing requirements with pip
       Collecting git+https://github.com/Rapptz/discord.py@rewrite (from -r /tmp/build_25682582/requirements.txt (line 1))
         Cloning https://github.com/Rapptz/discord.py (to revision rewrite) to /tmp/pip-req-build-hv03qzyg
         WARNING: Did not find branch or tag 'rewrite', assuming revision or ref.
       ERROR: Command errored out with exit status 1: git checkout -q rewrite Check the logs for full command output.
 !     Push rejected, failed to compile Python app.
 !     Push failed

那是我在 heroku 上看到的完整构建日志。 谁能帮忙?感谢

您应该将 requirements.txt 中的第一行更改为 git+https://github.com/Rapptz/discord.py。因为没有名为“rewrite”的标签或分支。