How to check Keras Version ( Jupyter, Colab, Terminal, Anaconda, Pycharm)

Keras is a high-level neural networks API, which is written in Python. It is built on top of TensorFlow, CNTK, or Theano for making it easy to write and fast execution.  Basically, It was built for enabling fast experimentation. In this article, you will know how to check the version of Keras in Jupyter, Colab, Terminal, Anaconda, and Pycharm.

How to check the version of Keras

Let’s know the methods to find which version of the Keras you are using on all the platforms.

Jupyter

If you are using Jupyter Notebook, the best way to check the version of Keras is to open the notebook and type the following command in a cell:

!pip show keras

It will print out the version of Keras that is installed in your system.

Checking version of keras in Jupyter Notebook
Checking version of keras in Jupyter Notebook

Colab

In Google Colaboratory, you can check the version of Keras by executing the following code in a cell.

!pip show keras

or

!pip freeze | grep keras

You will get the version of the keras in the colab.

Checking version of keras in colab
Checking the version of Keras in colab

Terminal

If you are using a terminal or the command prompt then, you can check the version of Keras by running the following command:

pip show keras

Here you don’t have to put the “!” before the pip command like the above platforms,

You will get the version of the Keras in the output.

Checking version of keras in Terminal
Checking version of keras in Terminal

Anaconda

In Anaconda, you can check the Keras by executing the following command in the Anaconda Prompt.

conda list keras

It will list out the Keras with the version installed in your system.

Checking version of keras in Ananconda Prompt
Checking version in Ananconda Prompt

Pycharm

If you are using Keras on  Pycharm, you can check the versionby Navigating to the file. Go to File > Settings > Project Interpreter. It will open the Project Interpreter window. There you will see the list of all the packages that are install in your working project. You will know the version of Keras next to the package name.

Conclusion

Keras is mainly use for building deep learning models. If you have installed this module in your system then these are the ways to check the Keras version in Jupyter, Colab, the Terminal, Anaconda, and Pycharm.

Code The Best
Hi, I am CodeTheBest. Here you will learn the best coding tutorials on the latest technologies like a flutter, react js, python, Julia, and many more in a single place.