{"id":22449,"library":"tensorrt-cu13-libs","title":"TensorRT Libraries for CUDA 13","description":"NVIDIA TensorRT is a high-performance deep learning inference optimizer and runtime. This package provides the TensorRT libraries for CUDA 13.x. Version 10.16.1.11 is the latest, with major releases every few months. Note that this is the libraries-only package (not the full Python bindings).","status":"active","version":"10.16.1.11","language":"python","source_language":"en","source_url":"https://github.com/nvidia/tensorrt","tags":["tensorrt","nvidia","deep-learning","inference","cuda13","libraries"],"install":[{"cmd":"pip install tensorrt-cu13-libs","lang":"bash","label":"PyPI install"}],"dependencies":[],"imports":[{"note":"The package is named tensorrt-cu13-libs but the import is still just 'tensorrt'.","wrong":"import tensorrt_libs","symbol":"tensorrt","correct":"import tensorrt as trt"}],"quickstart":{"code":"import tensorrt as trt\ntr = trt.init_libnvinfer()\nprint(trt.getVersionString())","lang":"python","description":"Initialize and print TensorRT library version."},"warnings":[{"fix":"Use tensorrt-cu12-libs (or older) for CUDA 12.x systems.","message":"CUDA 13 only: tensorrt-cu13-libs is built for CUDA 13.x. Installing on a system with older CUDA will cause runtime errors.","severity":"breaking","affected_versions":">=10.16"},{"fix":"If you need the Python API, install 'tensorrt-cu13-bindings' or 'tensorrt'.","message":"This package only contains the native libraries (libnvinfer.so, etc.). You also need tensorrt-cu13-bindings (or the full tensorrt package) to use the Python API.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.10+ and use Ubuntu 22.04 or newer.","message":"TensorRT 10.16 drops support for Python < 3.10 and Ubuntu 20.04.","severity":"deprecated","affected_versions":">=10.16"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Install tensorrt-cu13-libs and ensure LD_LIBRARY_PATH includes the installation site-packages directory (e.g., ~/.local/lib/python3.10/site-packages/tensorrt/).","cause":"The shared library is not installed or not in LD_LIBRARY_PATH.","error":"ImportError: libnvinfer.so.10: cannot open shared object file: No such file or directory"},{"fix":"Install 'tensorrt-cu13-bindings' or 'tensorrt' full package to get the Python API.","cause":"tensorrt-cu13-libs only provides libraries; the Python module is separate.","error":"AttributeError: module 'tensorrt' has no attribute 'init_libnvinfer'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}