Skip to content

Pip install fails due to deprecated nvidia-cuda-runtime-cu13 #4614

@NevermindNilas

Description

@NevermindNilas
Loading personal and system profiles took 722ms.
 python -m venv venv
 cd .\venv\Scripts\
 .\Activate.ps1
 pip install tensorrt
Collecting tensorrt
  Downloading tensorrt-10.13.3.9.tar.gz (40 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tensorrt_cu13==10.13.3.9 (from tensorrt)
  Downloading tensorrt_cu13-10.13.3.9.tar.gz (18 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tensorrt_cu13_libs==10.13.3.9 (from tensorrt_cu13==10.13.3.9->tensorrt)
  Downloading tensorrt_cu13_libs-10.13.3.9.tar.gz (706 bytes)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting tensorrt_cu13_bindings==10.13.3.9 (from tensorrt_cu13==10.13.3.9->tensorrt)
  Downloading tensorrt_cu13_bindings-10.13.3.9-cp313-none-win_amd64.whl.metadata (606 bytes)
Collecting nvidia-cuda-runtime-cu13 (from tensorrt_cu13_libs==10.13.3.9->tensorrt_cu13==10.13.3.9->tensorrt)
  Downloading nvidia_cuda_runtime_cu13-0.0.1.tar.gz (1.4 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Downloading tensorrt_cu13_bindings-10.13.3.9-cp313-none-win_amd64.whl (876 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 877.0/877.0 kB 18.5 MB/s  0:00:00
Building wheels for collected packages: tensorrt, tensorrt_cu13, tensorrt_cu13_libs, nvidia-cuda-runtime-cu13
  Building wheel for tensorrt (pyproject.toml) ... done
  Created wheel for tensorrt: filename=tensorrt-10.13.3.9-py2.py3-none-any.whl size=46510 sha256=907e7d959f58d32454429b8b22a55925b3e5472443c96aaa13b95347fcf8d8db
  Stored in directory: c:\users\nilas\appdata\local\pip\cache\wheels\7a\c2\25\ec82345436752fc7d1057ce55bc2e187c601c3fa599fab052d
  Building wheel for tensorrt_cu13 (pyproject.toml) ... done
  Created wheel for tensorrt_cu13: filename=tensorrt_cu13-10.13.3.9-py2.py3-none-any.whl size=17560 sha256=637230bc0359b9430d2225a4e4250c8192d166c17670a2e51eb804f8d51901ba
  Stored in directory: c:\users\nilas\appdata\local\pip\cache\wheels\6d\35\d6\7e3bc31185cdbd140ef7e2a6e4deb8dbca7c8a5a5750a02e26
  Building wheel for tensorrt_cu13_libs (pyproject.toml) ... done
  Created wheel for tensorrt_cu13_libs: filename=tensorrt_cu13_libs-10.13.3.9-py2.py3-none-win_amd64.whl size=1327112482 sha256=2561ed2f0a79c011701c9e74e0c5ccac5f84c19f5c51d17986b55d9adb4f2d21
  Stored in directory: c:\users\nilas\appdata\local\pip\cache\wheels\8a\50\31\96014fb119e9efdcd12c5e48b810582cd7e362945455ed4ae8
  Building wheel for nvidia-cuda-runtime-cu13 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for nvidia-cuda-runtime-cu13 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      \u26a0\ufe0f THIS PROJECT 'nvidia-cuda-runtime-cu13' IS DEPRECATED.
      Please use 'nvidia-cuda-runtime' instead.

      To install the correct package, use:

          pip install nvidia-cuda-runtime

      For more information, visit: https://pypi.org/project/nvidia-cuda-runtime/


      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for nvidia-cuda-runtime-cu13
Successfully built tensorrt tensorrt_cu13 tensorrt_cu13_libs
Failed to build nvidia-cuda-runtime-cu13

[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade pip
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> nvidia-cuda-runtime-cu13

This is in a blank venv and just simply running pip install tensorrt as seen in the logs.

Trying to work around it with a pip install nvidia-cuda-runtime and then trying to pip install tensorrt doesn't fix the issue either, probably due to the hardcoded link to the -cu13 library.

 pip install nvidia-cuda-runtime
Collecting nvidia-cuda-runtime
  Downloading nvidia_cuda_runtime-13.0.96-py3-none-win_amd64.whl.metadata (1.7 kB)
Downloading nvidia_cuda_runtime-13.0.96-py3-none-win_amd64.whl (2.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.9/2.9 MB 39.9 MB/s  0:00:00
Installing collected packages: nvidia-cuda-runtime
Successfully installed nvidia-cuda-runtime-13.0.96

[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade pip
 pip install tensorrt
Collecting tensorrt
  Using cached tensorrt-10.13.3.9-py2.py3-none-any.whl
Collecting tensorrt_cu13==10.13.3.9 (from tensorrt)
  Using cached tensorrt_cu13-10.13.3.9-py2.py3-none-any.whl
Collecting tensorrt_cu13_libs==10.13.3.9 (from tensorrt_cu13==10.13.3.9->tensorrt)
  Using cached tensorrt_cu13_libs-10.13.3.9-py2.py3-none-win_amd64.whl
Collecting tensorrt_cu13_bindings==10.13.3.9 (from tensorrt_cu13==10.13.3.9->tensorrt)
  Using cached tensorrt_cu13_bindings-10.13.3.9-cp313-none-win_amd64.whl.metadata (606 bytes)
Collecting nvidia-cuda-runtime-cu13 (from tensorrt_cu13_libs==10.13.3.9->tensorrt_cu13==10.13.3.9->tensorrt)
  Using cached nvidia_cuda_runtime_cu13-0.0.1.tar.gz (1.4 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Using cached tensorrt_cu13_bindings-10.13.3.9-cp313-none-win_amd64.whl (876 kB)
Building wheels for collected packages: nvidia-cuda-runtime-cu13
  Building wheel for nvidia-cuda-runtime-cu13 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for nvidia-cuda-runtime-cu13 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [10 lines of output]
      \u26a0\ufe0f THIS PROJECT 'nvidia-cuda-runtime-cu13' IS DEPRECATED.
      Please use 'nvidia-cuda-runtime' instead.

      To install the correct package, use:

          pip install nvidia-cuda-runtime

      For more information, visit: https://pypi.org/project/nvidia-cuda-runtime/


      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for nvidia-cuda-runtime-cu13
Failed to build nvidia-cuda-runtime-cu13

[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: python.exe -m pip install --upgrade pip
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> nvidia-cuda-runtime-cu13

Steps to reproduce:
pip install tensorrt

System specs:
13700k
3090 latest drivers through the NVidia APP.
Windows 11 24h2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module:OSS BuildBuilding issues: cmake, make, pip install, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions