There are various ways to install and manage Python packages. One of the easiest way is to use pip command line tool. Using pip, you can install/update/uninstall a Python package, as well as list all installed (or outdated) packages from the command line.
To install pip on Ubuntu, Debian or Linux Mint:
To install pip on Fedora:
To install pip on CentOS, first enable EPEL repository, and then run:
To install pip on Archlinux:
If you want to install pip3 for python3, you can use the following commands.
$ sudo python3 get-pip.py
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!