小编Nit*_*yal的帖子

无法在 alpine docker 镜像上安装 PyMuPDF

我正在尝试在 apline 图像上安装 pymupdf 包,但出现以下错误

fitz/fitz_wrap.c:2739:10: fatal error: ft2build.h: No such file or directory
     2739 | #include <ft2build.h>
          |          ^~~~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)
 RUN pip install PyMuPDF
 ---> Running in 34d246d6f01b
Collecting PyMuPDF
  Downloading PyMuPDF-1.18.5.tar.gz (251 kB)
Using legacy 'setup.py install' for PyMuPDF, since package 'wheel' is not installed.
Installing collected packages: PyMuPDF
    Running setup.py install for PyMuPDF: started
    Running setup.py install for PyMuPDF: finished with status 'error'
    ERROR: Command errored out with …
Run Code Online (Sandbox Code Playgroud)

python docker alpine-linux pymupdf

6
推荐指数
2
解决办法
5249
查看次数

标签 统计

alpine-linux ×1

docker ×1

pymupdf ×1

python ×1