环境安装:在theano后端上安装keras 1.1.0
发布时间
阅读量:
阅读量
前言
该框架支持以tensorflow和theano两个后端实现代码运行。本文介绍如何安装基于theano(1.0.2) 后端的keras(1.1.0)
安装
- 创建conda虚拟环境
$ conda activate -n keras python=3.5
指定为虚拟环境名称。
python = 指定Python版本。
由于师兄机子使用的环境为Python 3.5, 我们也没有选择其他版本的Python.
$ 新版本Python可能无法安装1.1.0版的Keras, 请注意!
当前需要重新激活一下环境:
$ conda activate keras
- 安装theano
$ pip install theano==1.0.2
- 安装keras
$ pip install keras==1.1.0
Note that at this point, keras is utilizing the TensorFlow backend, and we will need to modify the file in order to switch to the Theano backend.
全部评论 (0)
还没有任何评论哟~
