pip install pytorch-quantization error

一 报错信息

最近安装pytorch-quantization报错,安装失败报错信息如下:

bash 复制代码
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting pytorch-quantization
  Downloading 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 "<string>", line 36, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-f9tw8c74/pytorch-quantization_ae408775160944c195742c752da0d2ed/setup.py", line 137, in <module>
          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.

二 解决方案

bash 复制代码
pip install --no-cache-dir --index-url https://pypi.nvidia.com --index-url https://pypi.org/simple pytorch-quantization==2.1.3
相关推荐
Dola_Zou2 分钟前
工业软件防破解避坑指南:CodeMeter 全流程入门与选型(下)
人工智能·安全·自动化·视觉检测·软件工程
云边云科技_云网融合2 分钟前
AI 网关:律所数字化转型的 “安全守门人“ 与 “效率引擎“
人工智能·安全
hengsf1234563 分钟前
Transformer初探
人工智能·深度学习·transformer
Resistance丶未来4 分钟前
Pixelle-Video:AI全自动短视频引擎 接入API教程
人工智能·大模型·api·claude·deepseek·魔芋ai·pixelle-video
lqqjuly5 分钟前
语言模型理论与术语(LLM Theory & Terminology)
人工智能·语言模型·自然语言处理
AI技趣星球5 分钟前
就是我们日常使用的 Type-C 接口
人工智能
米云科技6 分钟前
小红书客服软件支持多账号吗?米多客高效解决跨账号管理难题
大数据·人工智能
打码人的日常分享6 分钟前
NLP和AI大模型应用方案
运维·人工智能·安全·系统安全·制造
俊哥V7 分钟前
每日 AI 研究简报 · 2026-06-02
人工智能·ai
随风丶飘21 分钟前
AI 接入 CI/CD 实测:构建失败自动诊断与修复,能省多少排查时间?
人工智能·ci/cd