Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check which version of Keras is installed?

Tags:

keras

Question is the same as the title says.

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

like image 653
aerin Avatar asked Sep 07 '17 00:09

aerin


People also ask

What is the current Keras version?

keras 2.9. 0 Deep learning for humans.

Which TensorFlow version has Keras?

keras . To start using Keras, simply install TensorFlow 2. Keras/TensorFlow are compatible with: Python 3.7–3.10.


2 Answers

Python library authors put the version number in <module>.__version__. You can print it by running this on the command line:

python -c 'import keras; print(keras.__version__)'

If it's Windows terminal, enclose snippet with double-quotes like below

python -c "import keras; print(keras.__version__)"
like image 68
aerin Avatar answered Oct 19 '22 02:10

aerin


You can write:

python
import keras
keras.__version__
like image 42
Noosh Avatar answered Oct 19 '22 03:10

Noosh