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
相关推荐
唐山柳林5 分钟前
基于 AI 边缘计算终端的水文精准测报体系建设
人工智能·边缘计算
kobesdu6 分钟前
「ROS2实战-2」集成大语言模型:ollama_ros_chat 本地智能对话功能包部署和使用解析
人工智能·语言模型·自然语言处理·机器人·ros
信也科技布道师10 分钟前
把7个页面变成1段对话:AI如何重构借款流程
前端·人工智能·重构·架构·交互·用户体验
xianluohuanxiang12 分钟前
2026年深度:高精度气象+新能源,从风速误差到收益偏差,行业赋能正在重构电站盈利模型
大数据·开发语言·人工智能·机器学习
大数据在线16 分钟前
浙江省中医院钮罗涌:重构“数字经络”,为中医现代化“搭桥修路”
人工智能·数字化转型·超融合·浙江省中医院·fuisoncube
木心术118 分钟前
openclaw与Hermes的优劣势对比
人工智能·python·opencv·自动化
潇洒畅想23 分钟前
1.2 希腊字母速查表 + 公式阅读实战
java·人工智能·python·算法·rust·云计算
90后的晨仔24 分钟前
从零部署 Hermes Agent:一只"会成长的 AI 马"保姆级安装教程
人工智能
taoqick26 分钟前
ICRL 2026部分论文(RS-GRPO、AgentGym-RL、MeMAgent、InPlaceTTT)粗读
人工智能·机器学习
weixin_5134499626 分钟前
EXTREME-PARKOUR项目学习记录
人工智能·学习·算法·机器人