windows10如何安装cpu版本tensorflow?

1.获取anaconda

https://repo.continuum.io/archive/Anaconda3-2018.12-Windows-x86_64.exe (这个版本内置python3.7)

2.安装anaconda

3.启动Anaconda Prompt

4.安装python3.5

conda create --name tensorflow python=3.5 (--name tensorflow:指定环境名为tensorflow)

5.激活名为tensorflow的环境

conda activate tensorflow

6.安装tensorflow

pip install --upgrade tensorflow

7.测试

(tensorflow) C:\Users\jello>python

Python 3.5.6 |Anaconda, Inc.| (default, Aug 26 2018, 16:05:27) [MSC v.1900 64 bit (AMD64)] on win32

Type "help", "copyright", "credits" or "license" for more information.

>>> import tensorflow as tf (没有报错,说明tensorflow已经安装成功)

>>>