Open pharmapsychotic opened 2 weeks ago
Looks like can workaround with pip install --extra-index-url https://pypi.nvidia.com tensorrt==10.0.1 tensorrt-cu12==10.0.1
You're absolutely right, pip is installing TensorRT 10.1 instead of the desired 10.0.1 when using the extra index URL with --extra-index-url https://pypi.nvidia.com. Here's how to address this issue:
Understanding the Problem:
The NVIDIA PyPI repository seems to prioritize newer versions on the index. Even though you specify ==10.0.1, it might not install that specific version because 10.1 is available. Solutions:
Downgrade After Installation:
Install TensorRT 10.1 first: Bash pip install --extra-index-url https://pypi.nvidia.com tensorrt Then downgrade to 10.0.1 using the --force-reinstall option: Bash pip install --extra-index-url https://pypi.nvidia.com tensorrt==10 This approach might not be ideal as it installs the newer version first, but it achieves the end goal.
Use a Virtual Environment:
Create a virtual environment to isolate TensorRT 10.0.1 and prevent conflicts with other projects. Activate the environment and then install TensorRT 10.0.1 using the specified method. This ensures the specific version is installed within the virtual environment. Build from Source (Advanced):
If strict version control is crucial, consider building TensorRT 10.0.1 from source. Download the source code from the NVIDIA NGC catalog and follow the build instructions. Recommendation:
For most scenarios, using a virtual environment (solution 2) is the preferred approach. It provides a clean and isolated environment for specific project dependencies.
Additional Considerations:
Make sure your CUDA Toolkit and NVIDIA Driver versions are compatible with TensorRT 10.0.1. You can find compatibility information in the TensorRT documentation. If you continue to face issues, search online for solutions related to specific error messages encountered during installation. By following these strategies, you should be able to successfully install the desired version of TensorRT (10.0.1) for your project.
We have filed this bug internally and plan to fix it for the next release. In the meantime, please use pip install --extra-index-url https://pypi.nvidia.com tensorrt-cu12==10.0.1
to install TRT 10.0.1.
Description
pip install --extra-index-url https://pypi.nvidia.com tensorrt==10.0.1
now installs tensorrt 10.1 instead of 10.0.1 and fails to deserialize engines built with 10.0.1Steps To Reproduce
It looks like the metapackage tensorrt has
tensorrt-cu12
dependency which is not pinned to a specific version so older version of tensorrt is installing latest version of tensorrt-cu12.