/usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory -


i error:

(cv) jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ make -j8 && make pycaffe protoc src/caffe/proto/caffe.proto cxx src/caffe/blob.cpp cxx src/caffe/data_reader.cpp cxx src/caffe/layer.cpp cxx src/caffe/solvers/adadelta_solver.cpp cxx src/caffe/solvers/rmsprop_solver.cpp cxx src/caffe/solvers/adagrad_solver.cpp cxx src/caffe/solvers/nesterov_solver.cpp cxx src/caffe/solvers/sgd_solver.cpp cxx src/caffe/solvers/adam_solver.cpp cxx src/caffe/syncedmem.cpp cxx src/caffe/common.cpp cxx src/caffe/internal_thread.cpp cxx src/caffe/layer_factory.cpp in file included /usr/include/boost/python/detail/prefix.hpp:13:0,                  /usr/include/boost/python/args.hpp:8,                  /usr/include/boost/python.hpp:11,                  src/caffe/layer_factory.cpp:4: /usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: no such file or directory compilation terminated. makefile:565: recipe target '.build_release/src/caffe/layer_factory.o' failed make: *** [.build_release/src/caffe/layer_factory.o] error 1 make: *** waiting unfinished jobs.... 

in makefile.config have:

python_include := /use/include/python3.4 

and in makefile have:

#python_libraries ?= boost_python python2.7 python_libraries ?= boost_python python3.4 

i using virtual environment running opencv3 python3.4.3+:

(cv) jalal@klein:~/computer_vision/py-faster-rcnn/caffe-fast-rcnn$ python --version python 3.4.3+ 

however in in /usr/include have these pythons not sure 1 python3.4.3+:

$ ls /usr/include/python python2.7/  python3.4/  python3.4m/ python3.5m/   $ ls /usr/include/python3.4m/ abstract.h         ceval.h                enumobject.h   imaging.h       metagrammar.h      parsetok.h     pyerrors.h     pystrcmp.h      structseq.h accu.h             classobject.h          errcode.h      imdib.h         methodobject.h     patchlevel.h   pyexpat.h      pystrtod.h      symtable.h asdl.h             codecs.h               eval.h         implatform.h    modsupport.h       pgen.h         pyfpe.h        python-ast.h    sysmodule.h ast.h              code.h                 fileobject.h   import.h        moduleobject.h     pgenheaders.h  pygetopt.h     python.h        token.h bitset.h           compile.h              fileutils.h    intrcheck.h     namespaceobject.h  pyarena.h      pyhash.h       pythonrun.h     traceback.h bltinmodule.h      complexobject.h        floatobject.h  iterobject.h    node.h             pyatomic.h     pymacconfig.h  pythread.h      tupleobject.h boolobject.h       datetime.h             frameobject.h  listobject.h    numpy              pycapsule.h    pymacro.h      pytime.h        typeslots.h bytearrayobject.h  descrobject.h          funcobject.h   longintrepr.h   object.h           pyconfig.h     pymath.h       rangeobject.h   ucnhash.h bytes_methods.h    dictobject.h           genobject.h    longobject.h    objimpl.h          pyctype.h      pymem.h        setobject.h     unicodeobject.h bytesobject.h      dtoa.h                 graminit.h     marshal.h       opcode.h           py_curses.h    pyport.h       sliceobject.h   warnings.h cellobject.h       dynamic_annotations.h  grammar.h      memoryobject.h  osdefs.h           pydebug.h      pystate.h      structmember.h  weakrefobject.h $ ls /usr/include/python3.4 abstract.h         ceval.h                enumobject.h   imaging.h       metagrammar.h      parsetok.h     pyerrors.h     pystrcmp.h      structseq.h accu.h             classobject.h          errcode.h      imdib.h         methodobject.h     patchlevel.h   pyexpat.h      pystrtod.h      symtable.h asdl.h             codecs.h               eval.h         implatform.h    modsupport.h       pgen.h         pyfpe.h        python-ast.h    sysmodule.h ast.h              code.h                 fileobject.h   import.h        moduleobject.h     pgenheaders.h  pygetopt.h     python.h        token.h bitset.h           compile.h              fileutils.h    intrcheck.h     namespaceobject.h  pyarena.h      pyhash.h       pythonrun.h     traceback.h bltinmodule.h      complexobject.h        floatobject.h  iterobject.h    node.h             pyatomic.h     pymacconfig.h  pythread.h      tupleobject.h boolobject.h       datetime.h             frameobject.h  listobject.h    numpy              pycapsule.h    pymacro.h      pytime.h        typeslots.h bytearrayobject.h  descrobject.h          funcobject.h   longintrepr.h   object.h           pyconfig.h     pymath.h       rangeobject.h   ucnhash.h bytes_methods.h    dictobject.h           genobject.h    longobject.h    objimpl.h          pyctype.h      pymem.h        setobject.h     unicodeobject.h bytesobject.h      dtoa.h                 graminit.h     marshal.h       opcode.h           py_curses.h    pyport.h       sliceobject.h   warnings.h cellobject.h       dynamic_annotations.h  grammar.h      memoryobject.h  osdefs.h           pydebug.h      pystate.h      structmember.h  weakrefobject.h 

i have virtual environment in bashrc:

export virtualenvwrapper_python=/usr/bin/python3 export workon_home=$home/.virtualenvs source /usr/local/bin/virtualenvwrapper.sh 

basically how can setup caffe work python3.4.3+? https://github.com/rbgirshick/py-faster-rcnn

use this

sudo apt-get install python-dev python3-dev


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -