我想在我的代码中导入 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 。他们都无法解决这个问题。如果您能帮助解决此安装错误,我将不胜感激!