centos上安装theano和Lasagne

1.安装theano所需的包

sudo yum install python-devel python-nose python-setuptools gcc gcc-gfortran gcc-c++ blas-devel lapack-devel atlas-devel

2.一定要在步骤1完成的基础上再执行第二步

   安装numpy:  pip install numpy

   查看numpy是否能通过测试   在python的控制台下 import numpy  ;numpy.test()  这一步需安装pytest模块(pip install pytest),若测试不通过就卸载重装

  安装scipy: pip install scipy 

   查看numpy是否能通过测试,同样运行 scipy.test()

3.在上面的步骤成功后,执行 pip install theano

4.安装Lasagne

git clone https://github.com/Lasagne/Lasagne.git #从github上拉取文件, 会建立一个Lasagne目录
cd Lasagne
pip install -r requirements.txt
sudo python setup.py install # 这一步需要root权限

原文地址:https://www.cnblogs.com/Mrfanl/p/9825626.html