What is PIP?
Updated 13 Oct 2025
Student
The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
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)