安装以tensorflow为后端的keras参考:
http://blog.csdn.net/u013829973/article/details/70555037
tensorflow这里安装1.0版本,https://mirrors.tuna.tsinghua.edu.cn/tensorflow/
安装tensorFlow(此方法为创建一个新的虚拟环境tensorflow)
参考http://blog.csdn.net/u010858605/article/details/64128466的博文
测试:
3.其他问题
或许到这里我们并没有满足,我们在Anaconda自带的ipython 和Spyder中import tensorflow的时候一直失败,提示 No module named ‘tensorflow’,如下图,那是因为我们没有在tensorflow的环境下打开它们。
为了能在ipython 和Spyder中使用tensorflow,我们需要在tensorflow的环境中安装这两个的插件。
输入conda install ipython
conda install spyder
最后:在activate的TensorFlow环境下输入ipython、spyder,可打开相应的环境。
附上:
conda remove --name tensorflow --all #此命令用来删除TensorFlow环境