Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: pyconfig.h: No such file or directory # include <pyconfig.h> #10

Open
yizuifangxiuyh opened this issue Sep 20, 2016 · 3 comments

Comments

@yizuifangxiuyh
Copy link

-- Found PythonLibs: /home/yanghuan/.pyenv/versions/anaconda3-2.4.0/lib/libpython3.5m.so
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

PYTHON_INCLUDE_DIR2

-- Build files have been written to: /home/yanghuan/下载/ssai-cnn-master/utils
Scanning dependencies of target patches
[ 16%] Building CXX object CMakeFiles/patches.dir/src/devide_to_patches.cpp.o
In file included from /usr/local/include/boost/python/detail/prefix.hpp:13:0,
from /usr/local/include/boost/python/args.hpp:8,
from /usr/local/include/boost/python.hpp:11,
from /home/yanghuan/下载/ssai-cnn-master/utils/src/devide_to_patches.cpp:4:
/usr/local/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory

include <pyconfig.h>

                   ^

compilation terminated.
CMakeFiles/patches.dir/build.make:62: recipe for target 'CMakeFiles/patches.dir/src/devide_to_patches.cpp.o' failed
make[2]: *** [CMakeFiles/patches.dir/src/devide_to_patches.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/patches.dir/all' failed
make[1]: *** [CMakeFiles/patches.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

@yizuifangxiuyh
Copy link
Author

how can I solve this?

@yizuifangxiuyh
Copy link
Author

thank you
!

@yizuifangxiuyh
Copy link
Author

I have solved problem by changing PYTHON_DIR in build.sh !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant