import tensorflow as tf
import numpy as np

print("TensorFlow version: ", tf.__version__)
print("NumPy version: ", np.__version__)

在pycharm的终端Terminal中查看tensorflow和numpy版本

python -c "import tensorflow as tf; print(tf.__version__)"
python -c "import numpy as np; print(np.__version__)"

显示结果

(sc) E:\sc>python -c "import tensorflow as tf; print(tf.__version__)"
2023-12-18 09:56:04.496641: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opene
d dynamic library cudart64_110.dll
2.5.0

(sc) E:\sc>python -c "import numpy as np; print(np.__version__)"
1.19.5

tensorflow-addons对应tensorflow版本查看,见下面的链接tensorflow2.X, TensorFlow Addons 版本的匹配选择_tensorflow-addons对应tensorflow版本-CSDN博客

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐