Uninstall TensorFlow 2.0 beta

In this tutorial we will see how to uninstall TensorFlow 2.0 beta from Google colab or from your location installation?

Uninstall TensorFlow 2.0 beta

How to uninstall TensorFlow 2.0 beta?

Have you previously installed TensorFlow 2.0 beta for testing your code and looking for new updates then it?s time to upgrade. Now you should remove TensorFlow 2.0 beta or old version and move on to the TensorFlow 2.0. Google is already released the TensorFlow 2.0.0 for production use. In this tutorial in will show you how to remove the uninstall TensorFlow 2.0 beta?

What is TensorFlow?

TensorFlow is a compute-intensive deep learning library designed to be efficient, scalable, and capable of high-throughput training on complex computer architectures. TensorFlow is designed to handle high workloads with more emphasis on better model development/training/inferencing. It also provides mathematical computing environment for latest AI/Deep Learning system. TensorFlow is used to solve various types of business problems mathematically. TensorFlow is a leading technology used for speech, image, and object recognition, and intelligence in robotics and machine learning. It's the most widely used deep learning library with large number of installation on production systems.

Steps for un installation of TensorFlow 2.0 beta or any other older version of TensorFlow

The TensorFlow is python library which is installed with the current Python and it can't be just installed by deleting packages manually. So, to uninstall TensorFlow 2.0 beta or any other TensorFlow version you have to use the pip Python package installer.

The pip installer will correctly find out the libraries during the un installation process and delete from Python installation. If you have previously installed old version of TensorFlow you can remove it using the pip installer.

The pip installer will correctly remove TensorFlow 2.0 beta or any other version installed on your system easily. In most of the cases it removes the packages correctly. So, using the pip is the best option for this.

Uninstall TensorFlow 2.0 beta or any other version from Google colab

You can use the following command to remove it from Google colab environment:


!pip uninstall tensorflow

Here is full un installation log:


Uninstalling tensorflow-1.15.0:
  Would remove:
    /usr/local/bin/estimator_ckpt_converter
    /usr/local/bin/freeze_graph
    /usr/local/bin/saved_model_cli
    /usr/local/bin/tensorboard
    /usr/local/bin/tf_upgrade_v2
    /usr/local/bin/tflite_convert
    /usr/local/bin/toco
    /usr/local/bin/toco_from_protos
    /usr/local/lib/python3.6/dist-packages/tensorflow-1.15.0.dist-info/*
    /usr/local/lib/python3.6/dist-packages/tensorflow/*
    /usr/local/lib/python3.6/dist-packages/tensorflow_core/*
Proceed (y/n)? y
  Successfully uninstalled tensorflow-1.15.0

Here is screen shot of the process:

uninstall TensorFlow

If you have installed TensorFlow for gpu then run the following command:


!pip uninstall tensorflow-gpu

Un installation TensorFlow in Anaconda Python environment

If you have installed TensorFlow in Anaconda Python then open conda and activate your python environment from where you have to remove TensorFlow. Then run the following commands:


pip uninstall tensorflow
pip uninstall tensorflow-gpu
conda remove tensorflow

Above command will remove TensorFlow from your Python environment.

In this tutorial we learned commands to uninstall TensorFlow.

Here are more tutorials of TensorFlow: