Search code examples
pythonpiperpnext

How uninstall pip3


I am having some problems with pip when trying to install a python application. It says its not able to find pip3, but its installed

Digging deeper I think I have locations where pip3 is installed.

While trying to uninstall, even that is not working since it referring to the other pip3

How to I go about keeping only one copy of pip3 and uninstall one copy of it

$which pip3
/home/frappeuser/.local/bin/pip3

$ sudo pip3 uninstall pip
sudo: unable to execute /usr/local/bin/pip3: No such file or directory

Solution

  • You can unninstall it using python in cmd using the following:

    python3 -m pip uninstall pip
    

    In case you are using python 2.0

    python -m pip uninstall pip
    

    python - refers to the python version that you are working with

    -m - refers to the option module

    pip - specifies the module name that you want to use

    uninstall - the operation you want to do

    pip - the module that you want to uninstall