You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows环境Python 3.11安装guppy3失败:缺失longintrepr.h文件

Windows 下安装 guppy3 失败:无法找到 longintrepr.h 文件

环境信息

  • 操作系统:Windows
  • 已更新工具版本:
    • wheel:0.38.4
    • pip:23.0.1
    • setuptools:67.6.0

操作步骤

执行安装命令:

pip install guppy3

错误情况

安装初期流程正常,但编译阶段出现致命失败,关键错误信息如下:

Collecting guppy3
  Using cached guppy3-3.1.2.tar.gz (335 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: guppy3
  Building wheel for guppy3 (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [95 lines of output]

     // 省略大量编译输出内容

      bitset.c
      src/sets/bitset.c(7): fatal error C1083: 無法開啟包含檔案: 'longintrepr.h': No such file or directory
      error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe' failed with exit code 2

已尝试更新所有相关工具版本,但问题仍未解决,求可行的修复方案。

内容的提问来源于stack exchange,提问作者Leee Jeff

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.28 22:19:57