# Fail to install gst-python in deepstream6.1 docker

**URL:** <https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544>\
**Category:** DeepStream SDK\
**Tags:** docker\
**Created:** [May 25, 2022, 9:11am UTC](https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544 "2022-05-25T09:11:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![damonzzz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@damonzzz](https://forums.developer.nvidia.com/u/damonzzz)\
**Post date:** [May 25, 2022, 9:11am UTC](https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544/1 "2022-05-25T09:11:18Z")

</div>

Please provide complete information as applicable to your setup.

**• Hardware Platform GPU)**  
**• DeepStream Version** 6.1  
**• Issue Type questions**  
Hi there  
While I’m trying to use the latest deepstream docker, I fail to install gst-python inside the docker. After I exec the command `./autogen.sh PYTHON=python3`, it fails and report this:

```auto
checking for headers required to compile python extensions... found
checking for pygobject overrides directory... ${exec_prefix}/lib/python3.8/site-packages/gi/overrides
checking for GST... yes
configure: Using /usr/local/lib/gstreamer-1.0 as the plugin install location
checking for PYGOBJECT... yes
checking for libraries required to embed python... no
configure: error: Python libs not found. Windows requires Python modules to be explicitly linked to libpython.
  configure failed

```

I searched and it said it is because `python 3.8` is no longer together with `--embed`. there are discussions about this [1](https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/24) and [2](https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/28).

btw, the 6.0.1 image with `python 3.6` works fine on my pc.  
appreciate if there is any advice.

---

<div class="post-metadata">

**Author:** ![Amycao](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/amycao/32/11342_2.png) [@Amycao](https://forums.developer.nvidia.com/u/Amycao)\
**Post date:** [May 27, 2022, 2:00am UTC](https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544/3 "2022-05-27T02:00:34Z")

</div>

Please use this,  
./autogen.sh

---

<div class="post-metadata">

**Author:** ![damonzzz](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@damonzzz](https://forums.developer.nvidia.com/u/damonzzz)\
**Post date:** [May 27, 2022, 2:07am UTC](https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544/4 "2022-05-27T02:07:12Z")

</div>

Thanks for the quick reply, I solved this problem just now.  
The root problem as I mentioned before, is `python3.8`is no longer linked to `libpython`. And the solution is to modify the `acinclude.m4` file. I found it [here](https://gitlab.freedesktop.org/gstreamer/gst-python/-/merge_requests/14?commit_id=1d8e3256116f4e27815cc1778c59550d40419dbb).  
I don’t try with single deepstream sdk, I do all my work using docker. I guess it is better to add this somewhere?

---

<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:** [June 10, 2022, 2:07am UTC](https://forums.developer.nvidia.com/t/fail-to-install-gst-python-in-deepstream6-1-docker/215544/5 "2022-06-10T02:07:22Z")

</div>

Closed on June 10, 2022, 2:07am UTC

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