Python Pipfile.lock out date/无法创建常规文件';requirements.txt';
当我尝试使用git push Heroku master将我的项目推送到Heroku时,我得到以下输出: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
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噢,该死,我忘记提交更改了。谢谢