How to check which version of Keras is installed?

后端 未结 4 1573
暗喜
暗喜 2021-02-01 00:12

Question is the same as the title says.

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

4条回答
  •  孤街浪徒
    2021-02-01 00:55

    Python library authors put the version number in .__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__)"
    

提交回复
热议问题