Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing tensorrt in conda env

Tags:

conda

tensorrt

I am trying to install tensorrt in conda env and I have the cudatoolkit and cudnn installed in my env through conda navigator. I have also updated my pip and setuptool but the get the below error what should i do?

Error:

Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting nvidia-tensorrt
  Downloading nvidia-tensorrt-0.0.1.dev5.tar.gz (7.9 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Zaniar.J\AppData\Local\Temp\pip-install-j1d5secx\nvidia-tensorrt_4052b513fcf14f1c9e44ac829f00ae55\setup.py", line 150, in <module>
          raise RuntimeError(open("ERROR.txt", "r").read())
      RuntimeError:
      ###########################################################################################
      The package you are trying to install is only a placeholder project on PyPI.org repository.
      This package is hosted on NVIDIA Python Package Index.

      This package can be installed as:
      ```
      $ pip install nvidia-pyindex
      $ pip install nvidia-tensorrt
      ```
      ###########################################################################################

      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.
like image 232
Zanyar Javanroodi Avatar asked May 24 '26 17:05

Zanyar Javanroodi


1 Answers

Have a look at the instructions here, and as the error suggests you first have to install:

pip install nvidia-pyindex

After that you can do:

pip install --upgrade nvidia-tensorrt
like image 146
ClaudiaR Avatar answered May 27 '26 07:05

ClaudiaR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!