我构建了一个使用opencv和dlib库的flask服务器应用程序。 这些是我使用的库:
import os
import cv2
import dlib as dlib
import math
import numpy as np
from flask import Flask, render_template, request, redirect, url_for, send_from_directory
from werkzeug.utils import secure_filename
这在当地运作良好,但在heroku上,我无法进一步。
当然,在add:BUILDPACK_URLs上为numpy,opencv和cmake添加buildpack。 我的工作如下: Python web application with OpenCV in Heroku
最后,我收到了这个错误:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing python-2.7.11
remote: ! Requested runtime (python-2.7.11) is not available for this
stack (cedar-14).
remote: ! Aborting. More info:
https://devcenter.heroku.com/articles/python-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to iris222.
remote:
如果有人帮助我,我会很开心。 更多我希望收到一些类似的指南。 感谢。