Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
View this page
Toggle table of contents sidebar

# pip check

## Usage

Unix/macOS

    python -m pip check [options]

Windows

    py -m pip check [options]

## Description

Verify installed packages have compatible dependencies.

## Examples

1. If all dependencies are compatible:

   Unix/macOS

       $ python -m pip check
       No broken requirements found.
       $ echo $?
       0

   Windows

       C:\> py -m pip check
       No broken requirements found.
       C:\> echo %errorlevel%
       0

2. If a package is missing:

   Unix/macOS

       $ python -m pip check
       pyramid 1.5.2 requires WebOb, which is not installed.
       $ echo $?
       1

   Windows

       C:\> py -m pip check
       pyramid 1.5.2 requires WebOb, which is not installed.
       C:\> echo %errorlevel%
       1

3. If a package has the wrong version:

   Unix/macOS

       $ python -m pip check
       pyramid 1.5.2 has requirement WebOb>=1.3.1, but you have WebOb 0.8.
       $ echo $?
       1

   Windows

       C:\> py -m pip check
       pyramid 1.5.2 has requirement WebOb>=1.3.1, but you have WebOb 0.8.
       C:\> echo %errorlevel%
       1