DeepLearning学习笔记(一) 搭建环境

来源:互联网 发布:淘宝网首页包 编辑:程序博客网 时间:2024/05/11 06:37

操作系统

在windows下安装 theano 一直没整成功。终于决定转战Ubuntu。
下载了Ubuntu 14.04 并做了U盘启动盘。 随后安装了
WPS
QQ 2012
Atom
搜狗输入法
等软件。

安装blas

[https://launchpad.net/ubuntu/+source/blas]

apt-get install libblas-dev

安装Theano

  1. 如果没有pip,先用apt-get install python-pip
  2. pip install Theano
  3. 程序下载后就会是一堆的编译。。
  4. 报错! 报连接错误。

尝试解决这个错误

  1. 花费了大量的时间。 后来从git上下载了Theano编译依然报错。
  2. 回头反复研究文档,看是否能找到突破。
  3. 决定先安装scipy ,以前因为pip可以解决以来就没去管他。现在试试。
  4. 在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下使用。
  5. 装上以后似乎就行了。
    python
    import scipy
    scipy.test()

    大量的测试,目测没错。
  6. 再测试
    python
    import theano
    theano.test()
  7. 似乎也通过了,但提示没有 pycuda 。于是查资料发现
    http://bbs.gpuworld.cn/thread-9681-1-1.html
    shell
    sudo apt-get install python3-pycuda

    安装之后目测theano找到了pycuda
0 0
原创粉丝点击