How to remove python pip from Ubuntu?

Today we will learn how to remove/uninstall previously install python pip from your Ubuntu 16.04 OS?

Ads


 

How to remove python pip from Ubuntu?

Today we will learn how to remove/uninstall previously install python pip from your Ubuntu 16.04 OS?

To uninstall python pip from Ubuntu apt tool is used. It provides command for installing and un-installing the software. Today we will see how to un-install python-pip from Ubuntu.

The pip is package management system which is used to manage software packages in Ubuntu. You will learn the steps to remove this package.

Uninstalling Python pip

To remove the python-pip following command is used:

sudo apt-get remove python-pip

Above command will remove the package from system and here is the output of the command:

deepak@deepak-VirtualBox:~$ sudo su
[sudo] password for deepak: 
root@deepak-VirtualBox:/home/deepak# sudo apt-get remove python-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libexpat1-dev libpython-all-dev libpython-dev libpython2.7-dev python-all
  python-all-dev python-dev python-pip-whl python-pkg-resources
  python-setuptools python-wheel python2.7-dev
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  python-pip
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 635 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 213736 files and directories currently installed.)
Removing python-pip (8.1.1-2ubuntu0.2) ...
Processing triggers for man-db (2.7.5-1) ...
root@deepak-VirtualBox:/home/deepak# 

Uninstalling python-pip package with dependencies

Following command is used to remove the python-pip package along with its dependencies:

sudo apt-get remove --auto-remove python-pip

This will remove python-pip and all its dependent packages which is no longer needed in the system.

Completely removing python-pip with all configuration files:

Following command should be used with care as it deletes all the configuration files and data:

sudo apt-get purge python-pip

or you can use following command also:

sudo apt-get purge --auto-remove python-pip

Above command will remove all the configuration files and data associated with python-pip package. You can can't recover the delete data, so, use this command with care.

Here is video instruction of the process:

In this video tutorial you learned how to uninstall and completely remove the python-pip package from your Ubuntu 16.04 LTS Operating system. Instruction given here also applies to the Ubuntu 16.04 LTS server.

Check Linux Installation/Un installation tutorials at our home page.

Ads