CentOS6.5+Theano+Keras安装

前端之家收集整理的这篇文章主要介绍了CentOS6.5+Theano+Keras安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文转载自:http://blog.csdn.net/gongshaojie12/article/details/50926342

一,安装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

原文链接:https://www.f2er.com/centos/379198.html

猜你在找的CentOS相关文章