How to set python-pip3 as default on CentOS 6

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 8.1.2 from /usr/lib/python2.7/site-packages (python 2.7)

 

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

sudo yum install python34-pip

 

You will also need to install development tools along with PIP.

sudo yum install python-devel
sudo yum groupinstall 'development tools'

 

Next, edit /home/.bashrc. I use vi, but use whichever text editor you are comfortable with. 

alias pip="/usr/bin/pip3"

 

Finally, source or reload /home/.bashrc

source /home/.bashrc

Leave a Reply

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