Failed to run sample applications in deepstream-6.2

Step 1&3 are not necessary, you only need to start the docker with the recommendation command on page DeepStream | NVIDIA NGC:

xhost +
docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-6.2 nvcr.io/nvidia/deepstream:6.2-devel

Then install the additional packages (note from Docker Containers — DeepStream 6.2 Release documentation) and python binding by script (refer to DeepStream 6.2 is now available for download! - #6 by yingliu)

./user_additional_install.sh
./user_deepstream_python_apps_install.sh -v 1.1.6

Below is the command I tested in my docker:

root@ubuntu:/opt/nvidia/deepstream/deepstream-6.2/sources/deepstream_python_apps/apps/deepstream-test3# python3 ./deepstream_test_3.py -i file:///op
t/nvidia/deepstream/deepstream/samples/streams/sample_720p.h264