The pip package installer in python
pip package installer Preferred Installer Program, in translation Preferred Installer) is required for installing and managing software packages written in Python. It can be used to install necessary third-party libraries and/or modules into a specific project (catalog).
Starting with Python 3.4
, pip comes bundled with the Python interpreter. However, before we get started, let's check if pip is available on our OS. To do this, enter the following command: pip3
on Linux and pip
on Windows:
pip
Please note that the commands differ for different OS. For Linux, you should always add the Python version number, for example: python3
and pip3
. When working in Windows, you do not need to specify the version - python
and pip
. In the future, we will use the commands for Windows, but if you work on Linux, always write python3
and pip3
.
After executing the code, the console will display information about additional commands and flags for pip. Let's check the list of installed packages. This is done using the following command:
pip list
As a result of executing the code, a list of the following type will appear in the console:
Package Version
---------------------- -------
mysql-connector-python 8.2.0
pip 24.0
protobuf 4.21.12
setuptools 65.5.1
wheel 0.38.4
Check if you have pip installed.
Find out what Python packages are already installed on your OS.