官网安装说明Installing Theano:http://deeplearning.net/software/theano/install.html#alternative-anacondacephp
尝试不一样方法后,AnacondaCE是最方便的安装方式:html
1. 安装AnacondaCE:https://store.continuum.io/cshop/anaconda/ ( 安装完后重启电脑,再进行软件扩展和下一步操做)python
用学校邮箱(edu.cn)能够申请Academic License,免费扩展软件应用,你申请后软件官方会把License文件发你邮箱(可能须要一天时间),邮件里面会说明如何在命令行里面运行三行代码完成软件更新。git
2. 安装Theano on AnacondaCE for Windows: https://github.com/Theano/Theano-wininstaller/raw/master/bin/theano_installer_latest.msi github
完成上面两步,按照官网说明是一切OK了,能够直接使用,但本人测试了3台电脑,win8 64bit和win7 32bit在安装第二步时都出现了下面的错误:函数
尝试了不一样的解决办法后都没有成功,无奈第二步只能本身手动完成一系列配置:测试
1. 下载theano的zip文件:https://github.com/Theano/Theano ,解压到C:\Anaconda\Lib\site-packages\theano目录下。spa
2. 添加环境变量: path: C:\Anaconda\MinGW\bin;C:\Anaconda\MinGW\x86_64-w64-mingw32\lib; .net
(32bit C:\Anaconda\MinGW\i686-w64-mingw32\lib;) 命令行
新建环境变量: PYTHONPATH: C:\Anaconda\Lib\site-packages\theano;
3. 在你home目录下(cmd进入的目录),建立 .theanorc.txt 文件内容以下:
[global]
openmp=False
[blas]
ldflags=
[gcc]
cxxflags = -IC:\MinGW\include
4. 在命令框里面输入下面命令,没有出错(没有返回值)则说明已经配置成功,以下图,
python
import theano
print theano.config.blas.ldflags
在执行画图代码是,pydot函数不能用,是由于没有安装相应的支持软件Graphviz
1. 下载Graphviz:http://www.graphviz.org/Download..php 双击安装
2. 添加Path路径: C:\Anaconda\Graphviz2.34\bin
PYTHONPATH: C:\Anaconda\Lib\site-packages\numba\minivect\pydot