Pipenv: Difference between pipenv sync and pipenv install --deploy

Created on 6 Mar 2019  路  2Comments  路  Source: pypa/pipenv

What is the difference between pipenv install --deploy and pipenv sync - both seem to install whatever is specified in Pipfile.lock. What am I missing?

pipenv version 2018.11.26

Most helpful comment

@haizaar Yeah they are nearly equivalent except that pipenv sync will never try to relock your dependencies(You can regard it as blind to Pipfile) while pipenv install --deploy will first check the consistency between Pipfile and Pipfile.lock and abort if they don't match.

All 2 comments

@haizaar Yeah they are nearly equivalent except that pipenv sync will never try to relock your dependencies(You can regard it as blind to Pipfile) while pipenv install --deploy will first check the consistency between Pipfile and Pipfile.lock and abort if they don't match.

Thanks you!
Reading docs again it looks like pipenv install --deploy will also check Python version actual vs requested in Pipfile.lock.

Was this page helpful?
0 / 5 - 0 ratings