参考文档
http://deeplearning.net/software/theano/install_centos6.html#install-centos6
安装依赖库
sudo yum install python-devel python-nose python-setuptools gcc gcc-gfortran gcc-c++ blas-devel lapack-devel atlas-devel
sudo easy_install pip
安装NumPy
sudo pip install numpy==1.6.1
安装SciPy
sudo pip install scipy==0.10.1
安装Theano
sudo pip install Theano
验证安装:
NumPy (~30s): python -c "import numpy; numpy.test()"
SciPy (~1m): python -c "import scipy; scipy.test()"
Theano (~30m): python -c "import theano; theano.test()"
使用新建PyDev工程开始使用Theano
运行测试程序
代码来自:
http://deeplearning.net/software/theano/tutorial/adding.html
手动安装python setuptools
安装setuptools,以方便依赖库的安装
从https://pypi.python.org/pypi/setuptools#files下载setuptools-0.7.2.tar.gz
上传到CentOS后解压(切换到root账号进行)
进入setuptools-0.7.2,编译setuptools
python setup.py build
安装setuptools
python setup.py install