Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug] Encountered bug when installing Torch-TensorRT #2484

Closed
Rasantis opened this issue Nov 23, 2023 · 1 comment · Fixed by #2806
Closed

🐛 [Bug] Encountered bug when installing Torch-TensorRT #2484

Rasantis opened this issue Nov 23, 2023 · 1 comment · Fixed by #2806
Labels
bug Something isn't working

Comments

@Rasantis
Copy link

im on a windows machine using python 3.11.4, i did all the steps, like in this tutorial:
https://medium.com/@peiyuan67/ai-inference-clear-steps-to-install-tensorrt-on-windows-d13f49d2f18b
when trying to install tensor rt lib, i got this error:
pip install torch-tensorrt -f https://github.com/NVIDIA/Torch-TensorRT/releases
Looking in links: https://github.com/NVIDIA/Torch-TensorRT/releases
Collecting torch-tensorrt
Using cached torch-tensorrt-0.0.0.post1.tar.gz (9.0 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\Administrator\AppData\Local\Temp\2\pip-install-0p7um8yy\torch-tensorrt_a7c52e0737e94e34a21ac47411265686\setup.py", line 125, in
raise RuntimeError(open("ERROR.txt", "r").read())
RuntimeError:
###########################################################################################
The package you are trying to install is only a placeholder project on PyPI.org repository.
To install Torch-TensorRT please run the following command:

  $ pip install torch-tensorrt -f https://github.com/NVIDIA/Torch-TensorRT/releases
  ###########################################################################################

  [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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

im using cuda 12.1

@Rasantis Rasantis added the bug Something isn't working label Nov 23, 2023
@phineas-pta
Copy link

pip install torch-tensorrt only available on linux

on windows u must build from source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants