我在 Ubuntu14.04 上使用 Tensorflow-0.8。我首先从源安装 Tensorflow,然后根据以下内容设置 Tensorflow 进行开发官方教程 https://www.tensorflow.org/versions/r0.10/get_started/os_setup.html#setting-up-tensorflow-for-development。当我想使用以下命令卸载tensorflow时
sudo pip uninstall tensorflow
我遇到了以下错误:
Can't uninstall 'tensorflow'. No files were found to uninstall
谁能告诉我哪里错了?
供您参考,输出pip show tensorflow
is
Name: tensorflow
Version: 0.8.0
Location: /home/AIJ/tensorflow/_python_build
Requires: numpy, six, protobuf, wheel
但我实际上找到了另一个 Tensorflow 目录
/usr/local/lib/python2.7/dist-packages/tensorflow
另外,我还有一个关于Python的一般用法的问题。我在我的系统中看到了两个非常相似的目录,即
/usr/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages
谁能告诉我它们之间的区别吗?我注意到每次我使用sudo pip install <package>
,该包将被安装到/usr/local/lib/python2.7/dist-packages
,我可以将软件包安装到/usr/lib/python2.7/dist-packages
using pip install
?
非常感谢您提前的帮助!