我遇到了 python 库 pikepdf 的问题

duk*_*uke 15 python pikepdf

当尝试使用 pip 安装 python 模块 pikepdf 时,会弹出以下错误:

\n
Building wheels for collected packages: pikepdf\n  Building wheel for pikepdf (pyproject.toml) ... error\n  error: subprocess-exited-with-error\n\n  \xc3\x97 Building wheel for pikepdf (pyproject.toml) did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [54 lines of output]\n      ...\n      creating build\\temp.win-amd64-cpython-310\\Release\\src\\qpdf\n      "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPOINTERHOLDER_TRANSITION=4 -IC:\\Users\\ME\\AppData\\Local\\Temp\\pip-build-env-dpc9ltd5\\overlay\\Lib\\site-packages\\pybind11\\include "-IC:\\Program Files\\Python310\\include" "-IC:\\Program Files\\Python310\\Include" "-IC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\ATLMFC\\include" "-IC:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\include" "-IC:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.8\\include\\um" "-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\ucrt" "-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\shared" "-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\um" "-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\winrt" "-IC:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.19041.0\\cppwinrt" /EHsc /Tpsrc/qpdf\\annotation.cpp /Fobuild\\temp.win-amd64-cpython-310\\Release\\src/qpdf\\annotation.obj /EHsc /bigobj /std:c++17\n      annotation.cpp\n      src/qpdf\\annotation.cpp(4): fatal error C1083: Cannot open include file: 'qpdf/Constants.h': No such file or directory\n      error: command 'C:\\\\Program Files (x86)\\\\Microsoft Visual Studio\\\\2019\\\\Professional\\\\VC\\\\Tools\\\\MSVC\\\\14.29.30133\\\\bin\\\\HostX86\\\\x64\\\\cl.exe' failed with exit code 2\n      [end of output]\n\n  note: This error originates from a subprocess, and is likely not a problem with pip.\n  ERROR: Failed building wheel for pikepdf\nFailed to build pikepdf\nERROR: Could not build wheels for pikepdf, which is required to install pyproject.toml-based projects\n
Run Code Online (Sandbox Code Playgroud)\n

由于缺少头文件,创建轮子失败:

\n
src/qpdf\\annotation.cpp(4): fatal error C1083: Cannot open include file: 'qpdf/Constants.h': No such file or directory\n
Run Code Online (Sandbox Code Playgroud)\n

这是针对 pikepdf v6.0.0 的。我之前的版本是v4.0.1.post1,运行得很好。

\n

这是我这边可以补救的事情吗?

\n