'ubuntu: uninstall matplotlib with pip won't work
I'm on Ubuntu and I neeed to uninstall matplotlib, which I installed as an ubuntu package and later upgraded with pip.
The usual command doesn't work:
$ sudo pip uninstall matplotlib
Can't uninstall 'matplotlib'. No files were found to uninstall.
What should I do?
Extra info:
~$ pip matplotlib --version
ERROR: unknown command "matplotlib"
me@me:~$ pip show matplotlib
---
Name: matplotlib
Version: 1.4.0
Location: /usr/local/lib/python2.7/dist-packages
Requires: numpy, six, python-dateutil, pyparsing, nose, mock, nose, mock
$ pip --version
pip 1.5.4 from /usr/lib/python2.7/dist-packages (python 2.7)
Solution 1:[1]
With pip you have installed matplotlib as a user not as root. This means when you try to uninstall it as root it is not recognised as installed (because it isn't).
You need to uninstall it with user level access thus drop the "sudo"
So your pip commands should look like this:
$pip uninstall matplotlibpip
instead of:
$sudo pip uninstall matplotlib
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Timothy Novice |
