PIP stands for “Pip Installs Packages” (or sometimes humorously,
“Pip Installs Python”). It is the official package manager for Python.
PIP allows you to install, update, and remove external libraries and dependencies that are not included in Python’s standard library.
Why You Need PIP
Python’s standard library is powerful, but many features (like web frameworks, data analysis, or machine learning tools) are provided by
third-party packages.
PIP helps you:
Install new packages from the Python Package Index (PyPI)
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
Why You Need PIP
Python’s standard library is powerful, but many features (like web frameworks, data analysis, or machine learning tools) are provided by third-party packages.
PIP helps you:
Basic Commands
pip --versionpip 24.0 from ...pip install package_namepip install requestspip uninstall package_namepip uninstall requestspip install --upgrade package_namepip install --upgrade numpypip listpip show package_namepip show pandaspip freeze > requirements.txtpip install -r requirements.txtExample: Installing and Using a Package
Then in Python:
Output:
Where Does PIP Get Packages From?
By default, PIP installs packages from PyPI (Python Package Index) →
🔗 https://pypi.org/
Example: when you run
it downloads Flask from PyPI and installs it in your Python environment.
Virtual Environments and PIP
Usually, developers use virtual environments (e.g.,
venv) to isolate dependencies for each project.Example:
Now Django is installed only inside this environment, not globally.
Summary
pip install numpyvenv,conda)