Tensorflow: why ‘pip uninstall tensorflow’ cannot find tensorflow

It could be because you didn’t install Tensorflow using pip, but using python setup.py develop instead as your link shows.

pip uninstall is likely to fail if the package is installed using python setup.py install as they do not leave behind metadata to determine what files were installed.

Therefore, you should be able to unistall Tensorflow with the option -u or --unistall of develop

cd /home/AIJ/tensorflow/_python_build
python setup.py develop --uninstall

To answer for the second (interestring) question about the two dist-package created under /usr/lib/python2.7 and /usr/local/lib/python2.7 it exists already a great Stack Overflow answer on the topic.

PS: Tensorflow is a good library, you should consider not uninstall it 🙂

Leave a Comment