cppimport: fatal error: pybind11/pybind11.h: No such file or directory

I tried following the example in the README and got the following error:

/tmp/tmp826vncgj/somecode.cpp:2:36: fatal error: pybind11/pybind11.h: No such file or directory
     #include <pybind11/pybind11.h>

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 28 (10 by maintainers)

Most upvoted comments

Hi @timbicker ,

I mange to resolve this issue inside a virtualenv of python2.7 by installing pybind11 using conda install pybind11

Hope this helps

just confirmed the pip installation of pybind does not install the .h files for me as well, weird. Using windows with python 3.7.4. However, using pip install pybind11[global] fixed the issue for me.