致命错误:找不到“Eigen / Core”文件

时间:2018-05-01 08:10:45

标签: python eigen

嗯......我已经尝试了几周的开源项目(https://github.com/seanbell/intrinsic)...... 但是当我创建这个文件时,它会显示错误。 我已经安装了eigen,opencv,numpy。错误仍然发生

python setup.py build_ext -i
Warning: Extension name 'krahenbuhl2013' does not match fully qualified name 'bell2014.krahenbuhl2013.krahenbuhl2013' of 'krahenbuhl2013.pyx'
running build_ext
building 'krahenbuhl2013' extension
gcc -fno-strict-aliasing -I/Users/Chen/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/lib/python2.7/site-packages/numpy/core/include -Iinclude -I/usr/include/eigen3 -I/Users/Chen/anaconda2/include/python2.7 -c krahenbuhl2013.cpp -o build/temp.macosx-10.6-x86_64-2.7/krahenbuhl2013.o

In file included from krahenbuhl2013.cpp:569:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18:
In file included from /usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:
/usr/local/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: 
      "Using deprecated NumPy API, disable it by "          "#defining NPY_NO_DEPRECATED_API
      NPY_1_7_API_VERSION" [-W#warnings]
#warning "Using deprecated NumPy API, disable it by " \
 ^
In file included from krahenbuhl2013.cpp:571:
In file included from ./include/densecrf_wrapper.h:1:
In file included from include/densecrf.h:29:
include/unary.h:28:10: fatal error: 'Eigen/Core' file not found
#include <Eigen/Core>
         ^~~~~~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1

1 个答案:

答案 0 :(得分:0)

我通过重新编码代码解决了这个问题。 在路上     / krahenbuhl2013 /包含/ 每个代码都有“Eigen/Core”,更改为“eigen3/Eigen/Core”。 在那之后,它可以工作。