小编Nir*_*ali的帖子

在 MacOS Big Sur 上安装 PyMuPDF

我想在我的代码中导入 fitz 。为此,我尝试使用安装 PyMuPDF

pip3 install PyMuPDF
Run Code Online (Sandbox Code Playgroud)

但是,此安装失败并返回以下错误:

fitz/fitz_wrap.c:2754:10: fatal error: 'fitz.h' file not found
#include <fitz.h>
         ^~~~~~~~
1 error generated.
error: command '/opt/homebrew/clang' failed with exit code 1
Run Code Online (Sandbox Code Playgroud)

我还尝试通过 Homebrew 安装 mupdf 和 mupdf-tools 。他们都无法解决这个问题。如果您能帮助解决此安装错误,我将不胜感激!

clang python-3.x pymupdf macos-big-sur apple-m1

11
推荐指数
2
解决办法
7100
查看次数

标签 统计

apple-m1 ×1

clang ×1

macos-big-sur ×1

pymupdf ×1

python-3.x ×1