- 创建一个环境
conda create -n tensorflow python=3.5
- 激活环境
activate tensorflow
- 安装tensorflow
使用的是清华镜像的python-3.5版本对应的(tensorflow-1.4.0-cp35-cp35m-win_amd64.whl)
https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/ad/8b/acaf89cdccbbbeac798edc45bd8ca92b1ff97b9c49a976c9cc0540b81b74/tensorflow-1.4.0-cp35-cp35m-win_amd64.whl#sha256=15e2f6ea16990811f0a109615898a19359b4af1564f3cf96103be7ab395b370e
pip install 上面的链接
出现更新pip的提示
You are using pip version 9.0.1, however version 18.0 is available.
python -m pip install --upgrade pip
更新后重新安装TensorFlow见第3步
pip install 上面的链接
- 测试是否安装成功
activate tensorflow
python
imort tensorflow as tf
如果没有出现 No Moudle…表示安装成功