[keras] How to check which version of Keras is installed?

Question is the same as the title says.

I prefer not to open Python and I use either MacOS or Ubuntu.

This question is related to keras

The answer is


You can write:

python
import keras
keras.__version__

The simplest way is using pip command:

pip list | grep Keras

Simple command to check keras version:

(py36) C:\WINDOWS\system32>python
Python 3.6.8 |Anaconda custom (64-bit) 

>>> import keras
Using TensorFlow backend.
>>> keras.__version__
'2.2.4'