/app/.heroku/python/bin/pip:没有这样的文件或目录

/app/.heroku/python/bin/pip:没有这样的文件或目录,heroku,flask,Heroku,Flask,我正在尝试在Heroku上部署Flask应用程序,运行时出现以下错误: git push heroku master 错误: Installing requirements with pip /app/tmp/buildpacks/779a8bbfbbe7e1b715476c0b23fc63a2103b3e4131eda558669aba8fb5e6e05682419376144189b29beb5dee6d7626b4d3385edb0954bffea6c67d8cf622fd51/bin

我正在尝试在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。

我的一个朋友最近遇到了这个问题,他通过在runtime.txt中更改python版本来修复

因此,基于他的解决方案:尝试将runtime.txt中的python版本更改为
python-3.5.2

更新:,用户3821012遇到了相同的问题多数赞成票的答案建议了相同的解决方案。你必须试一试。

请阅读-总结是,这不是一种向志愿者致辞的理想方式,可能会对获得答案产生反作用。请不要将此添加到您的问题中。