Open tomsepe opened 7 months ago
This did the trick for me. Upgrade Pip, wheel, tools etc. python3 -m pip install --upgrade pip python3 -m pip install wheel Install the TensorRT Python wheel. python3 -m pip install --pre --upgrade tensorrt
This did the trick for me. Upgrade Pip, wheel, tools etc. python3 -m pip install --upgrade pip python3 -m pip install wheel Install the TensorRT Python wheel. python3 -m pip install --pre --upgrade tensorrt
Be careful running:
python3 -m pip install --pre --upgrade tensorrt
If you are using the CUDA 11.8 tools, it may push you to TensorRT that only works with 12.X.
A better install path for 11.8 users is:
Activate .venv
cd streamdiffusion\.venv
scripts\activate.bat
Then run:
python -m pip install tensorrt-cu11
cd streamdiffusion.venv scripts\activate.bat
Oh yes, always.
installation error when running the following command:
python -m streamdiffusion.tools.install-tensorrt
(note: I am installing on windows 11, not linux)
The pypi project page: https://pypi.org/project/tensorrt/9.0.1.post11.dev4/ states this warning:
full error below:
× Running setup.py install for tensorrt did not run successfully. │ exit code: 1 ╰─> [171 lines of output] C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( WARNING: The wheel package is not available. running install C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://pypi.nvidia.com Collecting tensorrt_libs==9.0.1.post11.dev4 Downloading https://pypi.nvidia.com/tensorrt-libs/tensorrt_libs-9.0.1.post11.dev4-py2.py3-none-win_amd64.whl (1029.8 MB) ---------------------------------------- 1.0/1.0 GB 24.2 MB/s eta 0:00:00 Collecting tensorrt_bindings==9.0.1.post11.dev4 Downloading https://pypi.nvidia.com/tensorrt-bindings/tensorrt_bindings-9.0.1.post11.dev4-cp310-none-win_amd64.whl (708 kB) ------------------------------------- 708.4/708.4 kB 43.6 MB/s eta 0:00:00 Collecting nvidia-cudnn-cu11 Downloading https://developer.download.nvidia.com/compute/redist/nvidia-cudnn-cu11/nvidia-cudnn-cu11-2022.5.19.tar.gz (16 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting nvidia-cublas-cu11 Downloading https://developer.download.nvidia.com/compute/redist/nvidia-cublas-cu11/nvidia-cublas-cu11-2022.4.8.tar.gz (16 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting nvidia-cuda-runtime-cu11 Downloading https://developer.download.nvidia.com/compute/redist/nvidia-cuda-runtime-cu11/nvidia-cuda-runtime-cu11-2022.4.25.tar.gz (16 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting nvidia-cublas-cu117 Downloading https://pypi.nvidia.com/nvidia-cublas-cu117/nvidia_cublas_cu117-11.10.1.25-py3-none-win_amd64.whl (315.0 MB) ------------------------------------- 315.0/315.0 MB 24.2 MB/s eta 0:00:00 Collecting nvidia-cuda-runtime-cu117 Downloading https://pypi.nvidia.com/nvidia-cuda-runtime-cu117/nvidia_cuda_runtime_cu117-11.7.60-py3-none-win_amd64.whl (991 kB) ------------------------------------- 991.4/991.4 kB 20.9 MB/s eta 0:00:00 Collecting nvidia-cudnn-cu116 Downloading nvidia-cudnn-cu116-0.0.1.dev5.tar.gz (4.4 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'error' error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> tensorrt
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
[notice] A new release of pip is available: 23.0.1 -> 24.0 [notice] To update, run: python.exe -m pip install --upgrade pip Error running command: -m pip install --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir Traceback (most recent call last): File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.3056.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\streamdiffusion\tools\install-tensorrt.py", line 54, in
fire.Fire(install)
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\fire-0.5.0-py3.10.egg\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\fire-0.5.0-py3.10.egg\fire\core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\fire-0.5.0-py3.10.egg\fire\core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\streamdiffusion\tools\install-tensorrt.py", line 33, in install
run_pip(
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\streamdiffusion\pip_utils.py", line 52, in run_pip
return run_python(f"-m pip {command}", env)
File "C:\Users\tsepe\Documents\StreamDiffusionProject\StreamDiffusion.venv\lib\site-packages\streamdiffusion\pip_utils.py", line 46, in run_python
raise RuntimeError(f"Error running command: {command}")
RuntimeError: Error running command: -m pip install --pre --extra-index-url https://pypi.nvidia.com tensorrt==9.0.1.post11.dev4 --no-cache-dir