【问题标题】:What to add in the requirements.txt for Heroku uploading在 Heroku 上传的 requirements.txt 中添加什么
【发布时间】:2020-05-21 08:41:16
【问题描述】:

我一直在通过 Heroku 网站研究 requirements.txt 的用途,但我一直不明白要真正添加到该文本文件中的内容。我正在尝试使用不和谐来托管一个机器人,而我使用pip install ... 安装的唯一东西是硒,不和谐。我知道它是 pip 安装包,但我看到 youtube 上的其他人在其中添加了他们的 git 等。有人可以帮助我进一步了解这一点,以便我可以成功上传机器人!谢谢!

【问题讨论】:

标签: python heroku requirements.txt


【解决方案1】:

尝试将这些放在 requirements.txt 中:

git+https://github.com/Rapptz/discord.py
dnspython==1.16.0
PyNaCl==1.3.0
async-timeout==3.0.1

另外,请确保您的 txt 文件命名为 requirements(不带 .txt`)

【讨论】:

  • 谢谢你,工作就像一个魅力。不过,我缺少一件事,那就是硒包的要求,但除此之外,这一切都很好。谢谢
猜你喜欢
  • 2018-02-07
  • 2021-01-23
  • 2020-11-26
  • 1970-01-01
  • 1970-01-01
  • 2013-04-19
  • 1970-01-01
  • 1970-01-01
  • 2016-02-08
相关资源
最近更新 更多