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.
3 Answers
First try python -v -c "import tensorflow" to find out the place of the module file. Delete any tensorflow.so or similar files.
Possible paths include $PYTHONPATH, prefix/lib/python2.7/site-packages, exec-prefix/lib/python2.7/site-packages and $HOME/lib/python2.7/site-packages
Run python -c "print sys.path" to get a full list of paths.
4 Comments
python2.7/dist-packages/ ??python -c "print sys.path" to see.site-packages is empty. :(From the tensor flow website. https://www.tensorflow.org/install/install_linux
Do the following for uninstallation:
Uninstalling TensorFlow
To uninstall TensorFlow, simply remove the tree you created. For example:
$ rm -r targetDirectory