无法将python脚本部署到heroku

时间:2017-08-01 09:00:03

标签: python heroku

由于以下错误,我无法将我的脚本部署到Heroku

-----> Python app detected
-----> Installing "python-3.6.0"
-----> Installing pip
-----> 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

我在该文件夹中设置了virtualenv,如下所示

env  Procfile  namaztimesms.py  requirements.txt  runtime.txt

现在我的 Procfile 包含

web: python namaztimesms.py

requirements.txt 文件包含

beautifulsoup4==4.5.3
requests==2.13.0

runtime.txt 包含

"python-3.6.0" 

我不知道接下来会做什么?virtualenv出了什么问题或者安装不正确?

0 个答案:

没有答案