【发布时间】:2017-02-05 09:18:42
【问题描述】:
我在 Ubuntu14.04 上使用 Tensorflow-0.8。我首先从源代码安装 Tensorflow,然后根据 official tutorial 设置 Tensorflow 进行开发。当我想使用以下命令卸载 tensorflow 时
sudo pip uninstall tensorflow
我遇到了以下错误:
Can't uninstall 'tensorflow'. No files were found to uninstall
谁能告诉我哪里错了?
供您参考,
pip show tensorflow是
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,我可以使用pip install将软件包安装到/usr/lib/python2.7/dist-packages吗?
非常感谢您提前提供的帮助!
【问题讨论】:
标签: python tensorflow uninstallation