
Python has its own package manager called pip (Python’s package installer).
Pip Installation
If pip was not installed with python, you will need to install it ""manually"".
Windows
$ curl https://bootstrap.pypa.io/get-pip.py | python -
Don’t forget to add Python scripts to your PATH.
Linunx (Debian/Ubuntu, Arch Linux, Void Linux)
$ sudo apt install python3-pip
$ sudo pacman -S python-pip
$ sudo xbps-install python-pip
Basic Commands
Basic pip commands, for more details, see the: https://pip.pypa.io/en/stable/cli/
Check version
pip --version
Install a package
pip install <package>
Uninstall a package
pip uninstall <package>
List packages
pip list
Install packages in requirements.txt
pip install -r requirements.txt
List packages in requirements.txt format
pip freeze