每当我推送到平台时,我都会遇到Python版本错误:
$ git push heroku master
Counting objects: 31708, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (23964/23964), done.
Writing objects: 100% (31708/31708), 293.38 MiB | 1.12 MiB/s, done.
Total 31708 (delta 7100), reused 31670 (delta 7076)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: ! The latest version of Python 3 is python-3.6.5 (you are using python-3.5.2, which is unsupported).
remote: ! We recommend upgrading by specifying the latest version (python-3.6.5).
remote: Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: -----> Installing python-3.5.2
虽然我有以下Pipfile
:
[[source]]
url = "https://pypi.python.org/simple"
[packages]
requests = { extras = ['socks'] }
[requires]
python_full_version = "3.6.5"
我做了一个pipenv lock
这是我的Python版本:
mike@mike-thinks:~/Programing/Rasa/myflaskapp$ python3.6 -V
Python 3.6.5
为什么GitHub继续使用Pipfile中使用的版本的不同版本?