我正试图在heroku上部署一个程序。该程序使用的是烧瓶和Python。它不调用数据库。
它在本地运行,没有任何问题。
它成功地建立在heroku的基础上。
但是,当我与网页交互时,AJAX调用会失败,因为它缺少依赖关系。错误消息:
POST https://hal-stage.herokuapp.com/reason 500 (Internal Server Error)
检查日志显示:
2020-02-29T23:45:05.133568+00:00 app[web.1]: raise InstallError('The SDD library is not available. Please install the PySDD package.')
2020-02-29T23:45:05.133574+00:00 app[web.1]: problog.errors.InstallError: The SDD library is not available. Please install the PySDD package..PySDD库是requirements.txt的一部分。
如何将基础SDD库推送到heroku?
发布于 2020-03-01 02:02:55
必须在pipfile上添加所有依赖项,例如:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
[packages]
Flask = "*"
PySDD = "*"
[requires]
python_version = "3.6"希望它很适合
https://stackoverflow.com/questions/60470754
复制相似问题