【深度学习 环境配置】软件包安装和环境配置

OS: Linux: Ubuntu 14.04

安装:

1. Pip (Python 2.7.9或以上自带pip):

sudo apt-get install pyton-pip

2. 尝试安装scikit-neuralnetwork:
需要 numpy scipy theano

sudo pip install scikit-neuralnetwork

错误:SystemError: cannot compile “python.h”. Perhaps you need to install python-dev|python-devel

解决方法:

sudo apt-get update
sudo apt-get upgrade gcc
sudo apt-get install python2.7-dev 

3. 安装numpy, scipy, theano:

pip install numpy scipy theano
sudo pip install numpy scipy theano

错误:numpy.distutils.system_info.NotFoundError: no lapack/blas resources found
解决方法:

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran
sudo pip install scipy
sudo pip install Theano

4. 安装Pylearn2

sudo pip install -e git+https://github.com/lisa-lab/pylearn2.git#egg=Package
需要git
sudo apt-get install git

5. 安装scikit-neuralnetwork

> git clone https://github.com/aigamedev/scikit-neuralnetwork.git
> cd scikit-neuralnetwork; python setup.py develop

6. 测试

> sudo pip install nose
> nosetests -v sknn.tests

需要安装matplotlib:

sudo pip install matplotlib

错误:The following package could not be built: freetype, png
解决方法:

    sudo apt-get install libpng-dev
    sudo apt-get install libjpeg8-dev
    sudo apt-get install libfreetype6-dev

7. 视觉化显示:

> python examples/plot_mlp.py --params activation

8. 在MNIST上测试

> python examples/bench_mnist.py (sknn|lasagne)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

东华果汁哥

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值