windows 下 Python3.7 安装 tensorflow-gpu 版本
1. 电脑要求
win10和Nvidia显卡(1050Ti及最新驱动)
2. 创建 conda 环境
#命令创建python版本为X.X、名字为your_env_name的虚拟环境。
conda create -n your_env_name python=X.X(2.7,3.6,3.7等)
conda remove -n your_env_name --all
3. 激活环境
activate your_env_name
4. 在环境中使用 conda 安装 tensorflow-gpu 版本
conda install tensorflow-gpu
pip install tensorflow-gpu -i https://pypi.douban.com/simple
pip install -U tensorflow-gpu -i https://pypi.tuna.tsinghua.edu.cn/simple
安装过程默认yes
5. 测试 tensorflow-gpu 是否安装成功
import tensorflow