pip check
Usage
Unix/macOS
python -m pip check [options]
Windows
py -m pip check [options]
Description
Verify installed packages have compatible dependencies.
Examples
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
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
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
Important
Did this article help?
We are currently doing research to improve pip’s documentation and would love your feedback. Please email us &body=%0A%20%20%20%200.%20Document:%20reference/pip_check.%20Page%20URL:%20https:/%20%0A%0A%20%20%20%201.%20What%20problem%20were%20you%20trying%20to%20solve%20when%20you%20came%20to%20this%20page?%20%0A%0A%20%20%20%202.%20What%20content%20was%20useful?%20%0A%0A%20%20%20%203.%20What%20content%20was%20not%20useful?) and let us know:
What problem were you trying to solve when you came to this page?
What content was useful?
What content was not useful?