-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pytorch-quantization2.2.1 version update problem #3651
Comments
Could you please try |
This command runs correctly and installs version 2.1.3 of pytorch-quantization. I now suspect that version 2.2.1 of pytorch-quantization in https://pypi.org/project/pytorch-quantization does not actually exist |
|
I successfully changed the virtual environment again. It seems that this is related to environment conflict. Thanks! |
NP, close this. |
Facing the same issue. I tried this but it still does not work. |
It seems that pip can only install 2.1.3 correctly. If you want to use the latest (2.2.1), git clone the latest tensorrt repository and compile and install it locally. |
Yup can attest, got it (2.2.1) to work after compiling and installing locally. |
Description
Currently at https://pypi.org/project/pytorch-quantization/, the latest version of pytorch-quantization is 2.2.1, so use the command pip install --no-cache-dir --extra-index-url in the warehouse https://pypi.nvidia.com pytorch-quantization to install it, pointing to version 2.2.1, and an error will occur during the installation.
However, when building from source code in the github repository, the installed version is actually version 2.1.3, so use pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization== 2.1.3 or source code construction: python setup.py install can be successful.
Is it because pytorch-quantization has actually been updated to version 2.2.1, but the corresponding https://github.com/NVIDIA/TensorRT/tree/master/tools/pytorch-quantization warehouse still contains the old files of version 2.1.3? What caused the error when installing the latest version of pytorch-quantization?::
pip install pytorch-quantization==2.2.1
Looking in indexes: https://pypi.org/simple, https://pypi.nvidia.com
Collecting pytorch-quantization==2.2.1
Using cached pytorch-quantization-2.2.1.tar.gz (6.8 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-dsb92h3c/pytorch-quantization_4534ffe9c59042b88b92b666b3c09114/setup.py", line 137, 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.
This package is hosted on NVIDIA Python Package Index.
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.
Environment
ubuntu2004
NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3
Relevant Files
pytorch-quantization-2.2.1.tar.gz from https://pypi.org/project/pytorch-quantization/
Steps To Reproduce
Commands or scripts:pip install pytorch-quantization==2.2.1
Have you tried the latest release?:yes
The text was updated successfully, but these errors were encountered: