How to set python-pip3 as default on Ubuntu 19.04

PIP is a tool that manages Python packages that you will be using for your projects. In this article, we will cover setting PIP3 as default on your machine local or virtual. 

 

First, make sure that the correct you need is installed on your machine 

sudo pip --version

 

You should see something like

pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

 

If you don’t have pip installed, install it using the following command

sudo apt install python3-pip

 

Next, edit ~/.bash_aliases

echo "alias pip=pip3" >> ~/.bash_aliases

 

Finally, source or reload ~/.bash_aliases 

source ~/.bash_aliases

Leave a Reply

Your email address will not be published. Required fields are marked *