1.安装 Anaconda
官网https://www.anaconda.com/distribution/#download-section
下载最新版本
选all users
两个都选中就行
2. 安装Tensorflow
右键以管理员模式打开Anaconda Prompt直接输入可能
pip install tensorflow
可能问题:
①需要更新pip版本
②如图
ERROR: tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 39.1.0 which is incompatible.
原因: setuptools 版本太低
办法:更新setuptools版本 输入 pip install --upgrade setuptools
ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
办法:输入 pip install -U --ignore-installed wrapt enum34 simplejson netaddr
参考:https://www.cnblogs.com/conver/p/11141176.html
3.简单测试一下是否装好
输入Python
import tensorflow as tf 没问题就算好了