1.打开anaconda prompt:
2.在Anaconda Promt输入以下语句(一条条输入):
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
conda create -n tensorflow python=3.6
3.输入:activate tensorflow,可以看见出现了TensorFlow的环境(路径前面的小帽子):
4.安装cpu版本的Tensorflow:pip install --upgrade --ignore-installed tensorflow
5.安装完成后,我们需要用一个编辑器来实现Python编程(总不可能在命令行里面整吧!)
打开anaconda navigator(绿圈圈那个),在环境中选择TensorFlow;点击jupyter notebook下面的“install”,安装好就变成“Launch”了,点击就可以进去了
6.进入jupyter notebook之后输入:运行之后不报错就没问题了!
import tensorflow as tf
7.大功告成,希望有用!
参考:https://blog.csdn.net/qq_33254870/article/details/79001705