docker容器安装deepstream6.0遇到的问题和解决方法

1. ModuleNotFoundError: No module named 'gi' 

报错

Traceback (most recent call last):
  File "deepstream_test_1.py", line 22, in 
    import gi
ModuleNotFoundError: No module named 'gi'

解决方法

sudo apt install libcairo2-dev libxt-dev libgirepository1.0-dev

pip install pycairo PyGObject

参考链接

python - No module named gi - Stack Overflow

2. gstmodule.c:31:10: fatal error: gst/gst.h: No such file or directory

这个是在运行deepstream_python_apps的示例时遇见的,在make时出问题

docker容器安装deepstream6.0遇到的问题和解决方法_第1张图片

报错

make  all-recursive
make[1]: Entering directory '/root/gst-python'
Making all in common
make[2]: Entering directory '/root/gst-python/common'
Making all in m4
make[3]: Entering directory '/root/gst-python/common/m4'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/root/gst-python/common/m4'
make[3]: Entering directory '/root/gst-python/common'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/root/gst-python/common'
make[2]: Leaving directory '/root/gst-python/common'
Making all in gi
make[2]: Entering directory '/root/gst-python/gi'
Making all in overrides
make[3]: Entering directory '/root/gst-python/gi/overrides'
  CC       _gi_gst_la-gstmodule.lo
gstmodule.c:31:10: fatal error: gst/gst.h: No such file or directory
 #include 
          ^~~~~~~~~~~
compilation terminated.
Makefile:504: recipe for target '_gi_gst_la-gstmodule.lo' failed
make[3]: *** [_gi_gst_la-gstmodule.lo] Error 1
make[3]: Leaving directory '/root/gst-python/gi/overrides'
Makefile:401: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/root/gst-python/gi'
Makefile:481: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/gst-python'
Makefile:412: recipe for target 'all' failed
make: *** [all] Error 2

解决方法

# 我运行apt install libjson-glib-dev后没有解决问题,不确定是否是必需的库,以防万一一起写进来了
apt install libjson-glib-dev 
apt install libgstreamer-plugins-base1.0-dev

参考链接

No such file or directory #include - DeepStream SDK - NVIDIA Developer Forums

https://github.com/baedert/corebird/issues/189#issuecomment-48105184 

你可能感兴趣的:(nvidia,nano,深度学习,deepstrea)