詳細教程:MAC如何檢視Tensorflow版本号
#首先打開MAC終端(terminal)
1、激活tensorflow;
2、然後進入python(根據版本不同輸入自帶版本号)
3、輸入python語句執行查詢
PS:必須在激活tensorflow環境後再輸入python指令,否則會識别不到tensorflow,激活後可以看到在使用python前後指令前面都是有——(tensorflow)。
示例代碼如下:
[email protected] ~ % cd ~/tensorflow
[email protected] tensorflow % source bin/activate
(tensorflow) [email protected] tensorflow % python3
Python 3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18)
[Clang 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> tf.__version__
'2.2.0'