【问题标题】:/app/.heroku/python/bin/pip: No such file or directory Python Flask Heroku Deployment failing [duplicate]/app/.heroku/python/bin/pip:没有这样的文件或目录 Python Flask Heroku 部署失败 [重复]
【发布时间】:2017-06-14 03:36:49
【问题描述】:

我正在尝试在 Heroku 上部署 Flask 应用程序,但运行时出现此错误:

git push heroku master 

错误:

Installing requirements with pip
/app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/bin/steps/pip-install: line 7: /app/.heroku/python/bin/pip: No such file or directory
! Push rejected, failed to compile Python app.
! Push failed

我在 runtime.txt 中指定了 python-2.7.13。

【问题讨论】:

标签: heroku flask


【解决方案1】:

我的一个朋友最近遇到了这个问题,他通过更改 runtime.txt 中的 python 版本解决了这个问题。

所以根据他的解决方案:尝试将runtime.txt中的python版本改成python-3.5.2

更新:Found this,user3821012 遇到了相同的问题,大多数投票的答案建议了相同的解决方案。你一定要试一试。

【讨论】:

    猜你喜欢
    • 2022-06-11
    • 2013-07-16
    • 2018-12-30
    • 2013-08-30
    • 1970-01-01
    • 2013-07-13
    • 2020-05-26
    • 2021-03-27
    • 2019-05-31
    相关资源
    最近更新 更多