虚拟机版本:VMWare 8.0.1

Linux版本:ubuntu14.04 64位

1、安装Theano

sudo apt-get install python-pip

sudo apt-get install python-numpy

sudo apt-get install python-scipy

sudo apt-get install python-dev

sudo apt-get install python-nose

sudo apt-get install g++

sudo apt-get install git

sudo apt-get install libopenblas-dev

sudo pip install Theano

2、安装libyaml

wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz

tar -xzvf yaml-0.1.4.tar.gz

cd yaml-0.1.4

./configure --prefix=/usr/local

make

sudo make install

3、安装Keras

git clone https://github.com/fchollet/keras.git

cd keras

sudo python setup.py install

4、将backends从tensorflow切换到theano

gedit ~/.keras/keras.json

{

    "image_dim_ordering":"tf",

    "epsilon":1e-07,

    "floatx":"float32",

    "backend":"theano"

}

5、测试

python

>>>from keras.models import Sequential

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐