question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:27 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
dman82499commented, Apr 4, 2021

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.

4reactions
jvinescommented, May 10, 2019

Hi @timbicker ,

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

Hope this helps

Read more comments on GitHub >

github_iconTop Results From Across the Web

pybind11/pybind11.h: No such file or directory ... - GitHub
I tried to make sure that the file pybind11.h could be found by CLion. So I used Windows search to locate pybind11. It...
Read more >
building cpp with pybind11 - python - Stack Overflow
I get this other output: prova.cpp:1:10: fatal error: pybind11/pybind11.h: No such file or directory ...
Read more >
pybind11.h: No such file or directory - DeepStream SDK
I am trying to compile Deepstream 6.0 Python bindings: sudo apt install -y git python-dev python3 python3-pip python3.6-dev python3.8-dev ...
Read more >
fatal error: pybind11/operators.h while installing ydk0.8.5
It looks like you are missing installation of pybind11 package. Try "locate pybind11" or "pip list | grep pybind11" to see if it...
Read more >
Installation — DScribe 0.4.x documentation - GitHub Pages
fatal error : pybind11/pybind11.h: No such file or directory: The package depends on pybind11 which is used for communication between python and the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found