https://askubuntu.com/questions/764032/how-to-uninstall-tensorflow-completely
$ pip show tensorflow Name: tensorflow Version: 1.15.0 Summary: TensorFlow is an open source machine learning framework for everyone. Home-page: https://www.tensorflow.org/ Author: Google Inc. Author-email: packages@tensorflow.org License: Apache 2.0 Location: /home/soh/.local/lib/python3.6/site-packages Requires: tensorboard, opt-einsum, six, keras-preprocessing, gast, grpcio, numpy, astor, google-pasta, protobuf, wheel, keras-applications, termcolor, tensorflow-estimator, absl-py, wrapt Required-by:
// don't know why this is needed $ pip uninstall protobuf Uninstalling protobuf-3.10.0: Would remove: /home/soh/.local/lib/python3.6/site-packages/google/protobuf/* /home/soh/.local/lib/python3.6/site-packages/protobuf-3.10.0-py3.6-nspkg.pth /home/soh/.local/lib/python3.6/site-packages/protobuf-3.10.0.dist-info/*
$ pip uninstall tensorflow Uninstalling tensorflow-1.15.0: Would remove: /home/soh/.local/bin/estimator_ckpt_converter /home/soh/.local/bin/freeze_graph /home/soh/.local/bin/saved_model_cli /home/soh/.local/bin/tensorboard /home/soh/.local/bin/tf_upgrade_v2 /home/soh/.local/bin/tflite_convert /home/soh/.local/bin/toco /home/soh/.local/bin/toco_from_protos /home/soh/.local/lib/python3.6/site-packages/tensorflow-1.15.0.dist-info/* /home/soh/.local/lib/python3.6/site-packages/tensorflow/* /home/soh/.local/lib/python3.6/site-packages/tensorflow_core/*
$ python3 -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))" Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'tensorflow'
|