centos 安装theano

前端之家收集整理的这篇文章主要介绍了centos 安装theano前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

准备: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_parameterized
4.配置参考:
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环境

测试例子及结果

原文链接:https://www.f2er.com/centos/378918.html

猜你在找的CentOS相关文章