After installing caffe, report the following error when executing Make Pycaffe in caffe/build:
linxierdeAir:caffe linxier$ cd build
linxierdeAir:build linxier$ make pycaffe
[ 1%] Built target caffeproto
[ 98%] Built target caffe
[ 98%] Building CXX object python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o
/Users/linxier/caffe/python/caffe/_caffe.cpp:1:10: fatal error: 'Python.h' file
not found
#include <Python.h> // NOLINT(build/include_alpha)
^~~~~~~~~~
1 error generated.
make[3]: *** [python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.o] Error 1
make[2]: *** [python/CMakeFiles/pycaffe.dir/all] Error 2
make[1]: *** [python/CMakeFiles/pycaffe.dir/rule] Error 2
make: *** [pycaffe] Error 2
Solutions:
Export CPLUS_INCLUDE_PATH =/System/Library/Frameworks/Python framework Versions/2.7/include/python2.7
Reference links: https://stackoverflow.com/questions/35778495/fatal-error-python-h-file-not-found-while-installing-opencv
the path name to your computer contains Python. H folder path, after successful compilation.
Read More:
- eclipse cdt Program “make” not found in PATH
- Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command
- How to uninstall CUDA driver and toolkit in Mac OS X?
- Big hole in using OpenGL on Mac OS
- Successfully resolved error c3861: ‘printf’: identifier not found
- When NPM install, make: G + +: command not found will be prompted
- Configuring OpenGL environment on Mac OS
- Command not found: ADB appears on Mac
- yarn install gyp verb `which` failed python2 Error: not found: python2
- make modules_ Install compiles the kernel driver as a module, and the location of. Ko file in the root file
- About the problem of calling tools library by running Python program under Mac OS X, modulenotfoundererror: no module named ‘tools‘
- The solution of GDB code designed problem in Mac OS X
- Windowserror: [error 183] error and in Python os.raname () detailed explanation
- python root:code for Hash MD5 was not found. Error
- Error = 2, no such file or director is prompted in the lower left corner of the MAC pycharm running file
- Learning notes of Python 3: debugger speedups using Python not found
- Error: Make: pdflakex: command not found
- Instability of Mac OS finder
- Android More than one file was found with OS independent path ‘META-INF/LICENSE‘
- Android:More than one file was found with OS independent path ‘res/values/values.xml