windos安装tensorflow

  • Anaconda
  • CUDA
  • Tensorflow

Anaconda

用清华的源下载,由于TensorFlow supports only 64-bit Python 3.5 on Windows.所以载的是Anaconda3-4.2.0-Windows-x86_64.exe版本。
链接:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

CUDA

下载安装,https://developer.nvidia.com/cuda-downloads
下载,https://developer.nvidia.com/cudnn 添加至环境变量。

Tensorflow

cmd,输入命令,gpu版本:pip install –ignore-installed –upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0rc1-cp35-cp35m-win_amd64.whl

cmd,输入命令:
python
import tensorflow
先导入cuda,安装成功。

你可能感兴趣的:(Machine,Learning)