问题是,一旦我创建了我想将其推到heroku上的api。现在的问题是它不能运行除python-3.6.6以外的任何其他版本的python。现在我做了什么,去了pycharm并更改了我的python enterpreter的版本以及我的requirements.txt文件以及runtime.txt文件。 现在问题仍然没有解决,它显示了错误
$git ppush heroku master
Counting objects: 11974, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (10841/10841), done.
Writing objects: 100% (11974/11974), 30.62 MiB | 162.00 KiB/s, done.
Total 11974 (delta 5058), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! The latest version of Python 3 is python-3.6.6 (you are using
Pyt
hon-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-
runtime
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/pytho
n-support
remote: ! Push rejected, failed to compile Python app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to lendborrows.
remote:
To https://git.heroku.com/lendborrows.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/lendborrows.git'