1,安装Anaconda
我安装的是python3.7,这个简单,直接安装即可(感觉有坑)
https://repo.continuum.io/archive/ 下载地址
2,创建一个虚拟的TensorFlow环境
conda create -n tensorflow python=3.6
然后激活
3,安装TensorFlow
我按照网上的指导,改为清华的镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
然后再pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/https://mirrors.tuna.tsinghua.edu.cn/tensorflow/windows/cpu/tensorflow-1.1.0-cp35-cp35m-win_amd64.whl
安装失败,再改为pip install tensorflow 还是安装失败
找了个下载地址
然后本地安装 pip i