【588】获取 Python 包的版本号

参考:How to check which version of Keras is installed?

  本文以 keras 为例

1. 通过 Python 获取

import keras
keras.__version__

2. 通过 Terminal 获取

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

  or

pip list | grep keras
原文地址:https://www.cnblogs.com/alex-bn-lee/p/14962334.html