1. 程式人生 > >安裝tensorflow,檢視tensorflow版本,在終端退出python的命令

安裝tensorflow,檢視tensorflow版本,在終端退出python的命令

安裝TensorFlow

Cpu 版本,進入cmd直接進入cmd:

pip install --upgrade tensorflow

如果出現錯誤是pip,先更新pip:

python.exe -m pip install --upgrade pip

檢視tensorflow版本:

Python

import tensorflow as tf

tf.__version__

在終端退出python

quit() 或者

exit()