Question is the same as the title says.
I prefer not to open Python and I use either MacOS or Ubuntu.
You can write:
python import keras keras.__version__