打开anaconda中的prompt输入下面的指令。
2.1版本
conda create -n tensorflow python=3.7
activate tensorflow
anaconda search -t conda tensorflow
anaconda show anaconda/tensorflow
conda install --channel https://conda.anaconda.org/anaconda tensorflow
2.3版本
conda create -n tensorflow2_3 python=3.8
activate tensorflow2_3
pip install --upgrade --ignore-installed tensorflow
测试
安装环境安装成功后,要在anaconda中分别安装jupyter notebook。
import tensorflow as tf
print("tf.__version__")