# Compiling Deepstream 6.0 Python Bindings: pybind11.h: No such file or directory

**URL:** <https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979>\
**Category:** DeepStream SDK\
**Created:** [November 12, 2021, 9:04pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979 "2021-11-12T21:04:02Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfoglio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mfoglio](https://forums.developer.nvidia.com/u/mfoglio)\
**Post date:** [November 12, 2021, 9:04pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/1 "2021-11-12T21:04:02Z")

</div>

I am trying to compile Deepstream 6.0 Python bindings:

```auto
sudo apt install -y git python-dev python3 python3-pip python3.6-dev python3.8-dev cmake g++ build-essential \
    libglib2.0-dev libglib2.0-dev-bin python-gi-dev libtool m4 autoconf automake
sudo apt-get -y install pybind11-dev

```

```auto
git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps.git
cd deepstream_python_apps
git checkout v1.1.0
cd bindings
mkdir build
cd build
cmake ..
make

```

I encounter the error:

```auto
ubuntu@ip-x-x-x-x:~/pycharm/libs/deepstream_python_apps/bindings/build$ cmake ..
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/pycharm/libs/deepstream_python_apps/bindings/build
ubuntu@ip-x-x-x-x:~/pycharm/libs/deepstream_python_apps/bindings/build$ make
Scanning dependencies of target pyds
[6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /home/ubuntu/pycharm/libs/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23:0,
                 from /home/ubuntu/pycharm/libs/deepstream_python_apps/bindings/src/pyds.cpp:19:
/home/ubuntu/pycharm/libs/deepstream_python_apps/bindings/include/pyds.hpp:22:10: fatal error: pybind11.h: No such file or directory
 #include <pybind11.h>
          ^ ~~~~~~~~~~~
compilation terminated.
CMakeFiles/pyds.dir/build.make:62: recipe for target 'CMakeFiles/pyds.dir/src/pyds.cpp.o' failed
make[2]: *** [CMakeFiles/pyds.dir/src/pyds.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pyds.dir/all' failed
make[1]: *** [CMakeFiles/pyds.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

```

If I look for `pybind11.h` I can find it in:

```auto
/usr/include/pybind11/pybind11.h

```

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [November 15, 2021, 2:58pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/3 "2021-11-15T14:58:51Z")

</div>

please refer to [Python Sample Apps and Bindings Source Details — DeepStream 6.1.1 Release documentation](https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_Python_Sample_Apps.html?highlight=python#prerequisites) to install Gst Python

---

<div class="post-metadata">

**Author:** ![mfoglio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mfoglio](https://forums.developer.nvidia.com/u/mfoglio)\
**Post date:** [November 15, 2021, 6:34pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/4 "2021-11-15T18:34:02Z")

</div>

I installed Gst Python as indicated in that link, even thought that link is meant for Jetsons, while I am using a T4.  
I still have the same errors. It seems that `make` cannot find `pybind11.h`. It doesn’t look related to gstreamer.

---

<div class="post-metadata">

**Author:** ![mzgc4](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mzgc4](https://forums.developer.nvidia.com/u/mzgc4)\
**Post date:** [November 15, 2021, 7:56pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/5 "2021-11-15T19:56:16Z")

</div>

I have the same problem on my PC as well and I couldn’t figure it out for days. Deepstream 6.0 , ubuntu 18.04

---

<div class="post-metadata">

**Author:** ![mfoglio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mfoglio](https://forums.developer.nvidia.com/u/mfoglio)\
**Post date:** [November 15, 2021, 7:57pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/6 "2021-11-15T19:57:30Z")

</div>

Same, Deepstream 6.0, Ubuntu 18.04. I am working on an EC2 with a T4.

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [November 16, 2021, 12:48am UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/7 "2021-11-16T00:48:48Z")

</div>

> [@mfoglio](#):
>
> even thought that link is meant for Jetsons, while I am using a T4.

Can you please add the setup info as other topics?

---

<div class="post-metadata">

**Author:** ![mfoglio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mfoglio](https://forums.developer.nvidia.com/u/mfoglio)\
**Post date:** [November 16, 2021, 12:49am UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/8 "2021-11-16T00:49:28Z")

</div>

You mean opening another thread?

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [November 16, 2021, 1:03am UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/9 "2021-11-16T01:03:31Z")

</div>

I mean, please provide the setup info like below

**• Hardware Platform (Jetson / GPU)** : Jetson nano  
**• DeepStream Version** : 6.0.0  
**• JetPack Version (valid for Jetson only)** Jetpack 4.6  
**• TensorRT Version** 8.0.1  
**• NVIDIA GPU Driver Version (valid for GPU only)**  
**• Issue Type( questions, new requirements, bugs)** : Questions

---

<div class="post-metadata">

**Author:** ![mfoglio](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@mfoglio](https://forums.developer.nvidia.com/u/mfoglio)\
**Post date:** [November 16, 2021, 1:06am UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/10 "2021-11-16T01:06:43Z")

</div>

Here: [Compiling Deepstream 6.0 Python Bindings: pybind11.h: No such file or directory](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/195232)

---

<div class="post-metadata">

**Author:** ![mchi](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/mchi/32/14043_2.png) [@mchi](https://forums.developer.nvidia.com/u/mchi)\
**Post date:** [November 16, 2021, 2:53pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/11 "2021-11-16T14:53:38Z")

</div>

please refer to [Compiling Deepstream 6.0 Python Bindings: pybind11.h: No such file or directory - #3 by mchi](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/195232/3)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [November 30, 2021, 3:00pm UTC](https://forums.developer.nvidia.com/t/compiling-deepstream-6-0-python-bindings-pybind11-h-no-such-file-or-directory/194979/13 "2021-11-30T15:00:53Z")

</div>

Closed on November 30, 2021, 3:00pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
