I attempted to install pytorch-quantization using pip on both Windows and Ubuntu and received the following error:
I used this command:
pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization
I also tried another command line option:
pip install pytorch-quantization --extra-index-url https://pypi.ngc.nvidia.com
In addition, I’ve referred to the following source for installation guidance but had no luck when attempting to install from the source.
On windows and Ubuntu:
I use Miniconda and created a virtual env with python 3.10
pip install pytorch-quantization --extra-index-url https://pypi.ngc.nvidia.com
Looking in indexes: Simple index, https://pypi.ngc.nvidia.com, https://pypi.ngc.nvidia.com
Collecting pytorch-quantization
Downloading pytorch-quantization-2.2.0.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 “C:\Users\Hamed\AppData\Local\Temp\pip-install-baj4elms\pytorch-quantization_5e9c44491e6f4b17b90915ddf1cf38be\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.
This package can be installed as:
$ pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com pytorch-quantization
###########################################################################################
[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.
Could you please help me with that?