CentOS6.5+Theano+Keras安装

一,安装python2.7.11(编译共享库)

       0. python -V
      1. yum -y update
      2. yum groupinstall -y development
      3. yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
      4. wget http://www.python.org/ftp/python/2.7.11/Python-2.7.11.tar.xz
      5. tar -xvf Python-2.7.11.tar.xz
      6. cd Python-2.7.11
      7. ./configure --enable-shared
      8. make && make altinstall
      9. mv /usr/bin/python /usr/bin/python2.6.6  
      10. ln -s /usr/local/bin/python2.7 /usr/bin/python 
      11. vi /usr/bin/yum(#!/usr/bin/python 改为 #!/usr/bin/python2.6.6)

       在这里vi /etc/ld.so.conf 添加/usr/local/lib

      然后执行如下命令
      /sbin/ldconfig
      /sbin/ldconfig -v
      12. wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-1.4.2.tar.gz
      13. tar -xvf setuptools-1.4.2.tar.gz
      14. cd setuptools-1.4.2
      15. python setup.py install
      16. ln -s /usr/local/bin/easy_install-2.7 /usr/bin/easy_install
      17. easy_install pip
      18. curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python2.7 
      19. yum -y install libxslt-devel
      20. yum -y install libffi-devel

二,安装numpy

      pip install numpy

三,安装scipy

        0.yum install openblas-devel
       1.yum install blas-devel
       2.yum install lapack-devel
       3.pip install scipy

四,安装Theano

        0.git clone git://github.com/Theano/Theano.git (先下载)
       1.cd Theano
       2.python setup.py develop

五,安装Keras

        0.git clone https://github.com/fchollet/keras.git
      1.cd keras
      2.python setup.py install

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值