【发布时间】:2018-01-27 22:13:55
【问题描述】:
我有一个应用程序,它使用 Node.js 中的 python shell 模块来运行 python 脚本。适用于我的本地和一切。但是,当我在 heroku 上运行它时,python 可执行文件的路径会抛出一个找不到 Python 的错误。
我在 Heroku 控制台上使用了type -a python,它返回了/usr/bin/python 和/app/.heroku/python/bin/python
当我在 python shell options[pythonPath] 对象键中使用这些路径中的任何一个时,它不起作用并抛出错误 Error: spawn /app/.heroku/python/bin/python ENOENT
我正在运行 python 和 nodejs buildpack。
【问题讨论】:
标签: python node.js python-2.7 heroku