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.
Asked
Active
Viewed 2.6e+01k times
2 Answers
18
Depends on how you install it considering the fact that there are multiple ways to do it here. Most generic way people do it is through pip, check using:
sudo pip show tensorflow
Uninstall using:
sudo pip uninstall protobuf
sudo pip uninstall tensorflow
Install it using:
sudo pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp27-none-linux_x86_64.whl

PseudoAj
- 281
-
12
-
3
-
2
-
1
-
-
@CharlieParker because of this but in this particularly case might be fine. – Pablo Bianchi Mar 24 '18 at 03:28
-
-
-
@DheerajMPai @runDOSrun Since this was my local machine, I was using
sudo
to install tensorflow systemwide. So to remove it I was usingsudo
as well. Now, if you didn't use sudo to install it you need not use it. – PseudoAj Nov 26 '18 at 20:08 -
5
When running in conda
env or any virtual env sudo doesn't work. So you can use:
python3 -m pip uninstall protobuf
python3 -m pip uninstall tensorflow-gpu
python3 -m
is safest way to ensure that you are using pip3
and not pip2
.

Trect
- 334