PIP is the package management system or the package installer for Python, and it is used to install and manage software packages.
pip install
For Eg:
pip install django
pip install numpy
pip install pandas
To install a Package using PIP:
pip install
If you want to install PIP under a particular version:
pip install ==
Eg:
pip install requests==2.25.1
To uninstall a package using PIP:
pip uninstall
pip list:
To list all the packages installed in the system:
For Eg:
The response of the pip list will be like this:
| Package | Version |
| annotated-types | 0.6.0 |
| anyio | 4.3.0 |
| appdirs | 1.4.3 |
| apturl | 0.5.2 |
| bcrypt | 3.1.7 |
| blinker | 1.4 |
| Brlapi | 0.7.0 |
This command is used to get information about the installed package
For Eg:
pip show zipp
Response will be like this:
Name: zipp
Version: 1.0.0
Summary: Backport of pathlib-compatible object wrapper for zip files
Home page: https://github.com/jaraco/zipp
Author: Jason R. Coombs
Author-email: jaraco@jaraco.com
License: UNKNOWN
Location: /usr/lib/python3/dist-packages
Requires:
Required-by:
pip install -r requirements.txt
All the packages will be installed at the same time in the requirements.txt file