操作系统
在windows下安装 theano 一直没整成功。终于决定转战Ubuntu。
下载了Ubuntu 14.04 并做了U盘启动盘。 随后安装了
WPS
QQ 2012
Atom
搜狗输入法
等软件。
安装blas
[https://launchpad.net/ubuntu/+source/blas]
apt-get install libblas-dev
安装Theano
- 如果没有pip,先用apt-get install python-pip
- pip install Theano
- 程序下载后就会是一堆的编译。。
- 报错! 报连接错误。
尝试解决这个错误
- 花费了大量的时间。 后来从git上下载了Theano编译依然报错。
- 回头反复研究文档,看是否能找到突破。
- 决定先安装scipy ,以前因为pip可以解决以来就没去管他。现在试试。
- 在scipy官方网站(http://www.scipy.org/install.html) 找到
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
这个在ubuntu下使用。 - 装上以后似乎就行了。
python
import scipy
scipy.test()
大量的测试,目测没错。 - 再测试
python
import theano
theano.test()
- 似乎也通过了,但提示没有 pycuda 。于是查资料发现
http://bbs.gpuworld.cn/thread-9681-1-1.html
shell
sudo apt-get install python3-pycuda
安装之后目测theano找到了pycuda