Skip to content

Unable to pip install PyMuPDF (running on new M1pro Macbook) #1485

Description

@dutchwine85

I am trying to install PyMuPDF on a new M1Pro Macbook but I get a large error message each time. My input is -
pip3 install PyMuPDF

I have tried this several times but the output is the same.
The error is very long but some key pieces appear to be -

fitz/fitz_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]

/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int); ^

fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found #include <fitz.h> ^~~~~~~~ 2 warnings and 1 error generated. error: command 'clang' failed with exit status 1

I have already installed fitz with no issues. Are there any other packages I need to install prior to retrying PyMuPDF?
Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions