使用 python centos-7 安装 theano
install theano with python centos-7
按照此处的说明,我可以使用 python2 成功安装 theano
http://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 lapack-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: 致命错误: Python.h: 没有那个文件或目录。 #包括 。 ^。编译终止..
您似乎没有正确安装 python dev 的所有头文件和静态库。如果您有管理问题,您可以使用来自 https://www.continuum.io/downloads
的 Anaconda
否则,最首选的方法是使用您的包管理器在系统范围内安装它们。
sudo yum install python-devel
编辑:您可以在没有管理员权限的情况下使用 anaconda 安装 theano。您可以为您的系统下载 anaconda 的软件包,设置 python 编译器的适当路径,然后使用 conda install theano
安装 theano。另外,你可以安装 libgpuarray 和 pygpu,这是一个在没有管理员权限的情况下使用 theano 新后端的依赖,你可以找到说明 http://deeplearning.net/software/libgpuarray/installation.html#step-by-step-install
。
按照此处的说明,我可以使用 python2 成功安装 theano http://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 lapack-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: 致命错误: Python.h: 没有那个文件或目录。 #包括 。 ^。编译终止..
您似乎没有正确安装 python dev 的所有头文件和静态库。如果您有管理问题,您可以使用来自 https://www.continuum.io/downloads
的 Anaconda
否则,最首选的方法是使用您的包管理器在系统范围内安装它们。
sudo yum install python-devel
编辑:您可以在没有管理员权限的情况下使用 anaconda 安装 theano。您可以为您的系统下载 anaconda 的软件包,设置 python 编译器的适当路径,然后使用 conda install theano
安装 theano。另外,你可以安装 libgpuarray 和 pygpu,这是一个在没有管理员权限的情况下使用 theano 新后端的依赖,你可以找到说明 http://deeplearning.net/software/libgpuarray/installation.html#step-by-step-install
。