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] Can't install TorchTensorRT through pip (it installs version 0.0.0) #859

Closed
andreabonvini opened this issue Feb 9, 2022 · 4 comments
Assignees
Labels
channel: windows bugs, questions, & RFEs around Windows component: packaging Issues around packaging feature request New feature or request

Comments

@andreabonvini
Copy link

Bug Description

I installed all the dependencies correctly.
I'm using CUDA 11.5, CUDNN 8.3.1, TensorRT 8.2.3.0, PyTorch 1.10.2 with CUDA 11.3 support. However when I try to install TorchTensorRT through the following command:
pip3 install torch-tensorrt -f https://github.com/NVIDIA/Torch-TensorRT/releases
I get the following message:

# pip3 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.tar.gz (762 bytes)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: torch-tensorrt
  Building wheel for torch-tensorrt (setup.py) ... done
  Created wheel for torch-tensorrt: filename=torch_tensorrt-0.0.0-py3-none-any.whl size=1354 sha256=05a650bedd11cc2d3e883c66ed2ad56ec2410c4da2005c8b3222c596d5b6acc9
  Stored in directory: c:\users\novum\appdata\local\pip\cache\wheels\5e\38\da\78f7582f6cd9d87d0bfc2677516507fd8fd25a0f1701124aaf
Successfully built torch-tensorrt
Installing collected packages: torch-tensorrt
Successfully installed torch-tensorrt-0.0.0

Why is it installing version 0.0.0?
If I try to import torch_tensorrt in python this is what happens:

>>> import torch_tensorrt
TRTorch currently does nothing

Expected behavior

It should install version 1.0.0, I guess.

Environment

Build information about Torch-TensorRT can be found by turning on debug messages

  • Torch-TensorRT Version (e.g. 1.0.0): ...
  • PyTorch Version (e.g. 1.0): 1.10.2+cu113
  • CPU Architecture: x64
  • OS (e.g., Linux): Windows 10
  • How you installed PyTorch (conda, pip, libtorch, source): pip
  • Python version: 3.9.10
  • CUDA version: 11.5
  • GPU models and configuration: RTX3080
@andreabonvini andreabonvini added the bug Something isn't working label Feb 9, 2022
@andreabonvini
Copy link
Author

The answer is: I can't install TorchTensorRT because Windows isn't supported. However, I can't even optimize my model by running the NGC docker image from WSL2 (as explained here #856). Then, I guess that the only way I could optimize my model for my specific hardware (RTX 3080) is to switch my PC to Ubuntu, optimize the model, and going back to WIndows? It doesn't exist any better solution?

@ncomly-nvidia ncomly-nvidia added feature request New feature or request channel: windows bugs, questions, & RFEs around Windows and removed bug Something isn't working labels Apr 27, 2022
@ncomly-nvidia ncomly-nvidia added the component: packaging Issues around packaging label Aug 1, 2022
@ncomly-nvidia
Copy link
Contributor

Torch-TRT now has CMake support from the community. Check it out & let us know what you think! #1058

@aviadmx
Copy link

aviadmx commented Sep 24, 2022

I'm on ubuntu and also fail to install from pip

@ncomly-nvidia
Copy link
Contributor

GitHub changes broke the pip distro. please see: #1371 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
channel: windows bugs, questions, & RFEs around Windows component: packaging Issues around packaging feature request New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants