【发布时间】:2021-01-31 07:14:19
【问题描述】:
我是 heroku 的新手,但我一直在按照文档进行操作。我正在将我的 dash 应用程序部署到 heroku。设置进展顺利,直到最后的主推
> (venv) -MacBook-Air-3 heroku % git push heroku master
Enumerating objects: 12155, done.
Counting objects: 100% (12155/12155), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2900/2900), done.
Writing objects: 100% (12155/12155), 15.08 MiB | 1.53 MiB/s, done.
Total 12155 (delta 9145), reused 12155 (delta 9145)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Python app detected
remote: -----> Installing python-3.6.12
remote: -----> Installing pip 20.1.1, setuptools 47.1.1 and wheel 0.34.2
remote: -----> Installing SQLite3
remote: -----> Installing requirements with pip
remote: ERROR: Could not find a version that satisfies the requirement hBrotli==1.0.9
(from -r /tmp/build_77052133/requirements.txt (line 1)) (from versions: none)
remote: ERROR: No matching distribution found for hBrotli==1.0.9 (from -r /tmp/build_77052133/requirements.txt (line 1))
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
我根据文档访问了我使用 pip3 freeze >requirements.txt 创建的 requirements.txt,实际上在第 1 行有 hBrotli== 1.0.9。我不熟悉 hBrotli,也没有将它用于我的代码,而且似乎找不到任何有关它的信息。我不确定错误消息的含义。
【问题讨论】:
-
Brotli 是谷歌开发的一种压缩格式。我会在你的 requirements.txt 文件中添加 url。
-
由于一些拼写错误,Brotli 已成为 hBrotli,它抱怨没有找到具有给定版本的名为 hBrotli 的包,因为 hBrotli 不是一个东西。
标签: python heroku pycharm plotly-dash