【发布时间】:2016-10-06 17:25:08
【问题描述】:
按照此处的说明,我可以使用 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 3 上运行?你得到什么错误信息?您能否更新您的答案以更详细?
-
我添加了使用python3执行时遇到的错误