ImportError: cannot import name 'cudart' from 'cuda' (unknown location) on deepstream 7.1

Have you installed the pyds? Please refer to the deepstream_python_apps to install the pyds.