Loading lessons...
PIP and Packages
PIP and Packages
PIP is Python's package manager. It installs and manages extra modules from PyPI, the Python Package Index.
What is PIP?
- PIP stands for "Pip Installs Packages".
- It comes with Python on most systems.
- PyPI hosts hundreds of thousands of free packages.
Check if PIP is installed
pip --version
Install a package
pip install camelcase
Use an installed package
import camelcase
c = camelcase.CamelCase()
txt = "hello world"
print(c.hump(txt)) # Hello World
List installed packages
pip list
Remove a package
pip uninstall camelcase
Show package info
pip show camelcase
Popular packages
- camelcase: capitalize text
- numpy: fast math on arrays
- pandas: data analysis
- requests: HTTP requests
- django and flask: web frameworks
Download with pip
Install packages from PyPI with a single command. That's how Python's ecosystem stays so rich.
TL;DR
- PIP installs packages from PyPI.
pip install nameandpip uninstall name.pip listshows what's installed.- Packages like numpy and pandas power real Python work.