Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/312.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Pipfile.lock out date/无法创建常规文件';requirements.txt';_Python_Heroku - Fatal编程技术网

Python Pipfile.lock out date/无法创建常规文件';requirements.txt';

Python Pipfile.lock out date/无法创建常规文件';requirements.txt';,python,heroku,Python,Heroku,当我尝试使用git push Heroku master将我的项目推送到Heroku时,我得到以下输出: remote: -----> Python app detected remote: ! Python has released a security update! Please consider upgrading to python-3.7.6 remote: Learn More: https://devcenter.heroku.com/article

当我尝试使用git push Heroku master将我的项目推送到Heroku时,我得到以下输出:

remote: -----> Python app detected
remote:  !     Python has released a security update! Please consider upgrading to python-3.7.6
remote:        Learn More: https://devcenter.heroku.com/articles/python-runtimes
remote: cp: cannot create regular file '/app/tmp/cache/.heroku/requirements.txt': No such file or directory
remote: -----> Installing python-3.7.3
remote: -----> Installing pip
remote: -----> Installing dependencies with Pipenv 2018.5.18…
remote:        Your Pipfile.lock (e78d47) is out of date. Expected: (d89661).
remote:        Aborting deploy.
remote:  !     Push rejected, failed to compile Python app.
remote: 
remote:  !     Push failed
我已尝试运行
pipenv lock
,但没有解决问题

我的
Pipfile
如下所示:

[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
flask = "*"
gunicorn = "*"
numpy = "*"
opencv-python = "*"

[requires]
python_version = "3.7"
有什么想法吗

我已尝试运行
pipenv lock
,但没有解决问题


确保提交修改后的
Pipfile.lock
,并将提交推送到Heroku。仅在本地运行该命令是不行的。

“我已尝试运行1pipenv lock1,但没有解决问题”-您是如何做到这一点的?@Chris我只是在终端上运行它,并在Pipfile文件夹中激活了我的pipenv。在本地?您是否将更改提交到
Pipfile.lock
并将新的提交推送到Heroku?@Chris噢,该死,我忘记提交更改了。谢谢