繁体   English   中英

Heroku git 主推

[英]Heroku git master push

我是 heroku 的新手,但我一直在严格遵守文档。 我正在将我的仪表板应用程序部署到 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 不熟悉,也没有在我的代码中使用它,而且似乎找不到任何关于它的信息。 我不确定错误消息的含义。

没有名为hBrotli的 package 可能是由于某些拼写错误,只需将hBrotli更改为Brotli

这是您正在寻找的package https://pypi.org/project/Brotli/所以只需将 hBrotli 更改为 Brotli

或者只是做pip install Brotli

此外,如果需要,将导入更改为from brotli import nameOfClass

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM