相关疑难解决方法(0)

Tensorflow:为什么'pip uninstall tensorflow'找不到tensorflow

我在Ubuntu14.04上使用Tensorflow-0.8.我首先从源代码安装Tensorflow,然后根据官方教程设置Tensorflow进行开发.当我想使用以下命令卸载tensorflow时

sudo pip uninstall tensorflow
Run Code Online (Sandbox Code Playgroud)

我遇到以下错误:

Can't uninstall 'tensorflow'. No files were found to uninstall
Run Code Online (Sandbox Code Playgroud)

谁能告诉我哪里出错了?

供您参考,输出 pip show tensorflow

Name: tensorflow
Version: 0.8.0
Location: /home/AIJ/tensorflow/_python_build
Requires: numpy, six, protobuf, wheel
Run Code Online (Sandbox Code Playgroud)

但我实际上找到了另一个Tensorflow目录

/usr/local/lib/python2.7/dist-packages/tensorflow
Run Code Online (Sandbox Code Playgroud)

此外,我还有一个关于Python的一般用法的问题.我在我的系统中看到过两个非常相似的目录,即

/usr/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages
Run Code Online (Sandbox Code Playgroud)

谁能告诉我他们之间的区别?我注意到每次使用时sudo pip install <package>,都会/usr/local/lib/python2.7/dist-packages安装软件包,我可以将软件包安装到/usr/lib/python2.7/dist-packages使用中pip install吗?

非常感谢您的帮助!

python uninstall tensorflow

17
推荐指数
2
解决办法
3万
查看次数

标签 统计

python ×1

tensorflow ×1

uninstall ×1