安装
安装Anaconda
The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X. With over 19 million users worldwide, it is the industry standard for developing, testing, and training on a single machine. – from the official web of Anaconda.
从官网下载Anaconda,安装过程中Advanced Options中两个选项都勾选。安装以后在命令窗口中输入“conda --version”如果能输出conda 4.7.12字样,Anaconda就安装成功了。
配置镜像源
打开Anaconda Prompt,然后输入下面两个命令:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes
指定从清华镜像下载tensorflow
anaconda中创建tensorflow环境并激活
Anaconda Prompt中输入:
conda create -n tens