由于OpenCV而将Flask应用程序部署到Heroku时出错

I have been trying to deploy my Flask app in Heroku, but when running heroku open, it seems fail to start the server.

This is the message from heroku logs --tail https://pastebin.com/F282iigp

Here is my requirements.txt

Flask
Jinja2
Werkzeug
opencv-python
pillow
Plim
flask_mako
futures
flask-cors==3.0.8
scikit-image==0.14.0
numpy==1.15.2
-f https://download.pytorch.org/whl/torch_stable.html
torch==1.5.0+cpu
torchvision==0.6.0+cpu

我也尝试在命令行中执行此操作

heroku buildpacks:add --index 1 heroku-community/apt

and include an Aptfile:

libsm6
libxrender1
libfontconfig1
libice6

任何帮助表示赞赏。提前致谢!

评论
大宝剑
大宝剑

尝试在要求中添加此内容:

opencv == 3.1

点赞
评论