-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Issues with running the first example #1781
Comments
You didn't install it. You only built the tests and ran them in that local directory, so obviously, CMake can't just randomly guess there it needs to look.
You need to install the Python headers. On Ubuntu, you can install the |
Installing the specific python3.7-dev solved the problem, I had 3.6 and 3.8 but not 3.7 |
My case: using Amazon EC2 Ubuntu 20.04.5 LTS, installed python3-dev, python-dev, python3.8-dev using apt, none of those can solve the "Python.h no such file" problem. Finally found a solution in here and it works for me: Python.h: no such file or directory. |
I have Ubuntu 18.04.
A few months ago I was able to use
pybind11
. In the meantime I have deleted some files and decided to do a clean installation.I have cleared everything so that now when I run
locate pybind11
I don't get anything.I have tried to install
pybind11
in 2 ways:First:
Clone the repository:
Run:
mkdir build cd build cmake .. make check -j 4
Then I have the
main.cpp
file.and the
CMakeLists.txt
:When the configuration of
cmake
takes place I get the following errors:Second:
When I do the installation via
conan
, and run the program with the new CMakeLists.txt:I get the following error:
it is very much the same issue as #1728.
The text was updated successfully, but these errors were encountered: