ubuntu版本 18.04

错误信息

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/mupdf -I/usr/local/include/mupdf -Imupdf/thirdparty/freetype/include -I/usr/include/freetype2 -I/root/wenkupy/include -I/usr/include/python3.6m -c fitz/fitz_wrap.c -o build/temp.linux-x86_64-3.6/fitz/fitz_wrap.o
fitz/fitz_wrap.c:2755:10: fatal error: fitz.h: No such file or directory
#include 
^~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/root/wenkupy/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x1rml_fq/PyMuPDF/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-jmj_8mk5-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/wenkupy/include/site/python3.6/PyMuPDF" failed with error code 1 in /tmp/pip-build-x1rml_fq/PyMuPDF/

解决办法:

pip3 install –upgrade pip
pip3 install pymupdf==1.16.7