我可以按照下面的说明成功安装python2http://deeplearning.net/software/theano/install_centos6.html install-centos6。由于我没有root访问权限,所以我要求管理员安装上面提到的额外软件包。
sudo yum install python-devel python-nose python-setuptools GCC GCC -gfortran GCC -c++ blas-devel package -devel atlas-devel.
这适用于python2但不适用于python3。它们的附加包是否需要python3?使用python3运行会出现错误
.theano/compiledir_Linux-3.10-el7.x86_64-x86_64-with-centos-7.2.1511-Core-x86_64-3.4.3-64/lazylinker_ext/mod.cpp:1:20: fatal error: Python.h: No such file or directory# include。^。编译终止. .
似乎你没有正确安装python dev的所有头文件和静态库。如果你有管理问题,你可以使用https://www.continuum.io/downloads
的Anaconda否则,最受欢迎的方法是使用包管理器在系统范围内安装它们。
sudo yum install python-devel
conda install theano
安装anaconda。此外,您可以安装libgpuarray和pygpu,这是一个依赖项,用于在没有管理员权限的情况下使用theano的新后端,您可以找到http://deeplearning.net/software/libgpuarray/installation.html#step-by-step-install
指令。