python项目部署到heroku失败?

环境:python 3.6.6
学习《Python编程: 从入门到实践》最后一章,在虚拟环境中执行git push heroku master后,出现以下错误

(ll_env) D:\learning_log\ll_env\Scripts>git push heroku master
Counting objects: 79, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (73/73), done.
Writing objects: 100% (79/79), 6.38 MiB | 210.00 KiB/s, done.
Total 79 (delta 11), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote:  !     The latest version of Python 3.6 is python-3.6.6 (you are using Python 3.6.6, which is unsupported).
remote:  !     We recommend upgrading by specifying the latest version (python-3.6.6).
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing Python 3.6.6
remote:  !     Requested runtime (Python 3.6.6) is not available for this stack (heroku-16).
remote:  !     Aborting.  More info: https://devcenter.heroku.com/articles/python-support
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to salty-woodland-32065.
remote:
To https://git.heroku.com/salty-woodland-32065.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/salty-woodland-32065.git'

那么问题来了,我在官网heroku支持中心上查了,

Supported Runtimes

python-3.7.0 on all (cedar-14, heroku-16, and heroku-18) runtime stacks
python-3.6.6 on all (cedar-14, heroku-16, and heroku-18) runtime stacks
python-2.7.15 only on cedar-14 and heroku-16 runtime stacks

而我用的也是python-3.6.6
怎么破?各位。

阅读 2.8k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题