目前,我正在尝试安装苏贡机器学习工具箱,并将其与Python一起使用。我在Eigen3包中遇到了一个问题,当我尝试sudo port install shogun时,它给了我这个错误(日志文件):
:info:configure Error: Eigen3 not found
...
:info:configure ./configure-11619-9060.cpp:1:10: fatal error: 'Eigen/Dense' file not found
:info:configure #include <Eigen/Dense>
:info:configure ^我看到有些人说
#include "Eigen/Dense"解决他们的问题,但我不能访问这个文件,所以我不能改变它。
如果我打字
$ ls /opt/local/include/eigen3/
Eigen unsupported
signature_of_eigen3_matrix_library它给了我这个,所以我不知道该尝试什么,知道吗?
编辑:我在这些定制的2行中使用了这个公式
args = std_cmake_args + [
...
"-DBUNDLE_EIGEN=ON",
"-DPythonModular=ON",
...
]现在它没有报告任何错误,但是它不承认shogun。
$ ipython
In [1]: import shogun
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-0add07018436> in <module>()
----> 1 import shogun
ImportError: No module named shogun
In [2]: import modshogun
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-0add07018436> in <module>()
----> 1 import modshogun
ImportError: No module named modshogun发布于 2015-12-21 08:42:09
可以向cmake调用中添加以下选项之一以解决此问题:
要么在您的包含目录中获取特征
-DEIGEN_INCLUDE_DIR=/opt/local/include/eigen3/或者你可以用
-DBUNDLE_EIGEN=ON让shogun下载eigen3。
https://stackoverflow.com/questions/34370412
复制相似问题