1.Anacondapython
1)下载地址:国内清华镜像网站是:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/测试
2)命令行验证安装成功:命令窗口中输入“conda --version” ----->获得conda 4.7.10网站
2.Tensorflowui
1)修改镜像地址:url
用国内清华镜像,须要改一下连接镜像的地址。这里,咱们打开刚刚安装好的Anaconda中的 Anaconda Prompt,而后输入:命令行
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ blog
conda config --set show_channel_urls yesip
2)安装Tensorflow:rem
conda create -n tensorflow python=3.5.2pip
安装成功显示:conda activate tensorflow
3)运行Tensorflow命令行输入:activate tensorflow
4)安装的是CPU版本:
--安装pip:python -m pip install --upgrade pip
--安装cpu命令:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow
=======ERROR: tensorboard 1.14.0 has requirement setuptools>=41.0.0, but you'll have setuptools 36.4.0 which is incompatible.
解决更新setuptools版本 输入 pip install --upgrade setuptools
5)测试:
在Anaconda Prompt窗口中输入: python
进入python后输入:
import tensorflow as tf
sess = tf.Session()
a = tf.constant(10)
b= tf.constant(12)
sess.run(a+b)