我是heroku的新手,但我一直在跟踪文档的内容。我正在向heroku部署我的dash应用程序。在最后主推之前,安装一直进行得很顺利。
> (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创建了pip3,实际上在第1行中有hBrotli== 1.0.9。我不熟悉hBrotli,也不把它用于我的代码,而且似乎找不到有关它的任何信息。我不知道这条错误信息意味着什么。
发布于 2021-01-31 07:22:10
没有名为hBrotli的包,可能是由于某些错误--只需将hBrotli更改为Brotli
发布于 2021-01-31 07:32:11
这是您要寻找的https://pypi.org/project/Brotli/包,所以只需将hBrotli改为Brotli即可。
或者直接做pip install Brotli
另外,如果需要,请将导入更改为from brotli import nameOfClass
https://stackoverflow.com/questions/65976637
复制相似问题