【问题标题】:Pipfile.lock is out of date. [duplicate]Pipfile.lock 已过期。 [复制]
【发布时间】:2018-11-24 16:35:05
【问题描述】:

尝试将 python 脚本推送到 heroku,它抱怨我的 pipfile.lock 已过时。我正在使用 pipenv 来管理依赖项,并且我尝试运行 pipenv 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 lock”,它对我有用。

标签: python heroku pipfile


【解决方案1】:

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

【讨论】:

  • 它也对我有用。
猜你喜欢
  • 2018-09-02
  • 2018-09-03
  • 1970-01-01
  • 1970-01-01
  • 2016-07-06
  • 2015-11-06
  • 2013-01-23
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多