创建新的环境,并安装tensorflow
# Python 3.5
$ conda create -n tensorflow python=3.5
$ source activate tensorflow
$ conda install -c conda-forge tensorflow
启动对应tensorflow环境的spyder
# 激活
$ source activate tensorflow
# 启动spyder。前提是已经配置的anaconda环境
$ spyder
安装新的packages
# 激活
$ source activate tensorflow
# 安装
$ conda install keras
安装的速度太慢,可以切换的清华的镜像,速度很快
$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
$ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
(缺点是某些包没有更新到最新版本。想要删除清华源把add改成remove就行。)