I'm using Tensorflow-0.8 on Ubuntu14.04. I first install Tensorflow from sources and then setup Tensorflow for development according to the official tutorial. When I want to uninstall tensorflow using the following command
sudo pip uninstall tensorflow
I encountered the following error:
Can't uninstall 'tensorflow'. No files were found to uninstall
Could anyone tell me where is wrong?
For your reference, the output of
pip show tensorflow
is
Name: tensorflow
Version: 0.8.0
Location: /home/AIJ/tensorflow/_python_build
Requires: numpy, six, protobuf, wheel
But I actually find another Tensorflow directory at
/usr/local/lib/python2.7/dist-packages/tensorflow
Besides, I also have a question about the general usage of Python. I have seen two quite similar directories in my system, i.e.
/usr/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages
Could any one tell me the differences between them? I noticed that everytime I use sudo pip install <package>
, the package will be installed to /usr/local/lib/python2.7/dist-packages
, could I instead install packages into /usr/lib/python2.7/dist-packages
using pip install
?
Thanks a lot for your help in advance!