如何完全卸载 TensorFlow? [英] How to uninstall TensorFlow completely?
问题描述
我不小心为 64 位 Ubuntu/Linux 安装了 TensorFlow,启用了 GPU.当我仅安装 Linux 64 位 CPU 时,从 python 控制台导入 tensorflow 时出现分段错误.
I accidentally installed TensorFlow for Ubuntu/Linux 64-bit, GPU enabled. When I installed with Linux 64-bit CPU only, I am getting Segmentation fault while importing tensorflow from python console.
推荐答案
先试试python -v -c "import tensorflow"
找出模块文件的位置.删除任何 tensorflow.so
或类似文件.
First try python -v -c "import tensorflow"
to find out the place of the module file. Delete any tensorflow.so
or similar files.
可能的路径包括 $PYTHONPATH、prefix/lib/python2.7/site-packages
、exec-prefix/lib/python2.7/site-packages
和 <代码>$HOME/lib/python2.7/site-packages
Possible paths include $PYTHONPATH, prefix/lib/python2.7/site-packages
, exec-prefix/lib/python2.7/site-packages
and $HOME/lib/python2.7/site-packages
运行 python -c "print sys.path"
以获取完整的路径列表.
Run python -c "print sys.path"
to get a full list of paths.
这篇关于如何完全卸载 TensorFlow?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!