一、Ubuntu16.04的安装(http://www.linuxidc.com/Linux/2016-04/130520.htm)
启动后就会出现这个画面
选择第一选项 Try Ubuntu without installing 或 第二选项 Install Ubuntu 直接安装。
点击桌面上的 Install Ubuntu 16.04 LTS 图标开始正式安装。
选择语言:中文(简体)
选中第二个才会安装无线网络,我选择安装时暂时不更新Ubuntu系统。
如果是Windows与Linux双系统安装,请选择其他选项,切记。您可以自己创建、调整分区,或者为 Ubuntu 选择多个分区。
这里选择安装在 sda9,使用ext4格式。
点击继续 及 现在安装。
二、Anaconda的安装(http://blog.youkuaiyun.com/u012029332/article/details/51098248)
1.下载 Anaconda installer for Linux(https://www.continuum.io/downloads).
2.在终端安装
3.是否在bashrc中添加路径,这里选择“yes”就可以,否则后面报错的话,你需要将以下代码加到你的bash shell环境变量中,记得
cd~ 转到主目录,准备执行shell,其他目录不可
vim.bashrc
export PATH="/home/username/anaconda/bin:$PATH"#最下面一行添加就行,wq保存退出。记得对应更改自己的用户名和anaconda的名字,我的后面加了一个2。
三、Keras安装(http://blog.youkuaiyun.com/qq_32329377/article/details/53008019?locationNum=15&fps=1)
1.安装Theano
~$ cd anaconda2/
~/anaconda2$ cd bin/
~/anaconda2/bin$ sudo apt-get install python-numpy
~$ conda install theano
测试安装
~$ python
>>> import theano
>>> theano.test()
~$ python
>>> import theano
>>> theano.test()
2.安装Tensorflow
~$ cd anaconda2/
~/anaconda2$ cd bin/
~/anaconda2/bin$ pip install tensorflow
同样测试
3.安装Keras
conda install keras
切换keras后端
~$ cd .keras/
~/.keras$ vim keras.json
下载Keras开发包进行mnist数据集测试
git clone https://github.com/fchollet/keras.git
cd keras/examples/
python mnist_mlp.py