准备:anaconda
2.安装(参考:theano安装)
yum install python-devel python-nose python-setuptools gccgcc-gfortran gcc-c++ blas-devel lapack-devel atlas-devel pip install --upgrade pip pip install Theano
3.测试安装成功否
python import theano theano.test()
测试时报
ERROR: Failure: ImportError (No module named nose_parameterized)解决:
pip install nose_parameterized4.配置参考:
http://deeplearning.net/software/theano/library/config.html
theano安装一般集成到了ANACONDA中,所以要添加环境变量:
export PYTHONPATH=/root/anaconda2/lib/python2.7/site-packages/theano:$PYTHONPATH
查看:
echo $PYTHONPATH
5.因为theano是装在默认python下的,所以在idea中调用的时候建项目时要选默认的python环境
测试例子及结果