且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查安装了哪个版本的Keras?

更新时间:2023-09-26 17:02:46

Python库作者将版本号放在<module>.__version__中.您可以通过在命令行上运行它来打印它:

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__)'

如果是Windows终端,请在代码段中用双引号将其括起来,如下所示

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

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