python - Pipfile.lock 已过时。

标签 python heroku pipfile

尝试将 python 脚本推送到 heroku,它提示我的 pipfile.lock 已过期。我正在使用 pipelinenv 来管理依赖项,并且尝试运行 pipelinev lock 来更新锁定文件,但无济于事。

Counting objects: 11, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (11/11), done.
Writing objects: 100% (11/11), 2.39 KiB | 817.00 KiB/s, done.
Total 11 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Found python-3.6.5, removing
remote: -----> Installing python-2.7.15
remote: -----> Installing pip
remote: -----> Installing dependencies with Pipenv 11.8.2.
remote:        Your Pipfile.lock (c7d2bf) is out of date. Expected: (29c137).
remote:        Aborting deploy.
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed
remote: Verifying deploy...
remote:
remote: !       Push rejected to bot_testbed.
remote:

Warning: Your console font probably doesn't support Unicode. If you experience strange characters in the output, consider switching to a TrueType font such as Consolas!
To https://git.heroku.com/peopleoftherealms.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/bot_testbed.git

最佳答案

当这是我的问题时,一个简单的pipenv install就是解决方案。我用的是windows ubuntu,不过应该是通用的。

关于python - Pipfile.lock 已过时。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50865274/

相关文章:

python - 如何在新的 python 安装中安装 pip

python - 使用Python 3.x打印实时SSH输出

python - 如何使用 Pipenv 指定多个 sys_platforms

environment-variables - Pipenv Pipfile - 从私有(private)仓库安装包

python - 将嵌套的 json 插入到 Postgres 中的列中

Power BI 中的 Python Plotly

python - 在 Heroku dyno 上运行多个进程是否可行?

ruby-on-rails - 设计确认链接将用户重定向到 heroku 域而不是自定义域

ruby-on-rails - 有什么方法可以从 heroku 提供 gzip Assets ?

heroku - heroku Flask webapp 部署中的requirements.txt vs Pipfile?