1、在win的菜单栏找到Anaconda Powershell Prompt以管理员的身份打开:
2、输入以下命令安装TensorFlow库。
pip install TensorFlow
3、解决速度过慢的问题
①使用清华镜像:
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple TensorFlow
②使用豆瓣镜像
pip install TensorFlow -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
安装成功: