conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda search --full -name tensorflow
conda create --name tensorflow python=3.7
查看所有环境名: conda info --envs
activate tensorflow
退出当前激活的环境: deactivate
pip install --upgrade --ignore-installed tensorflow
> python
import tensorflow as tf
hello = tf.constant('hello, world')
sess = tf.Session()
print(sess.run(hello))
安装完毕
原文:https://www.cnblogs.com/xiong233/p/10609300.html