HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/share/doc/python3-pip/html/cli/pip_check.rst
.. _`pip check`:

=========
pip check
=========


Usage
=====

.. tab:: Unix/macOS

   .. pip-command-usage:: check "python -m pip"

.. tab:: Windows

   .. pip-command-usage:: check "py -m pip"


Description
===========

.. pip-command-description:: check


Examples
========

#. If all dependencies are compatible:

   .. tab:: Unix/macOS

      .. code-block:: console

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

   .. tab:: Windows

      .. code-block:: console

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

#. If a package is missing:

   .. tab:: Unix/macOS

      .. code-block:: console

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

   .. tab:: Windows

      .. code-block:: console

         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:

   .. tab:: Unix/macOS

      .. code-block:: console

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

   .. tab:: Windows

      .. code-block:: console

         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