install ERROR on M1 MacBook #1704
Unanswered
tshuangteng
asked this question in
Looking for help
Replies: 2 comments 4 replies
-
use anaconda |
Beta Was this translation helpful? Give feedback.
4 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
% pip install PyMuPDF
Collecting PyMuPDF
Downloading PyMuPDF-1.19.6.tar.gz (2.3 MB)
|████████████████████████████████| 2.3 MB 1.2 MB/s
Preparing metadata (setup.py) ... done
Building wheels for collected packages: PyMuPDF
Building wheel for PyMuPDF (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /Users/ht/Venv/pdf2xls/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"'; file='"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-wheel-09elteay
cwd: /private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/
Complete output (37 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-universal2-3.8
creating build/lib.macosx-11-universal2-3.8/fitz
copying fitz/init.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/fitz.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/utils.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/main.py -> build/lib.macosx-11-universal2-3.8/fitz
running build_ext
creating build/temp.macosx-11-universal2-3.8
creating build/temp.macosx-11-universal2-3.8/fitz
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Users/ht/Venv/pdf2xls/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c fitz/fitz_wrap.c -o build/temp.macosx-11-universal2-3.8/fitz/fitz_wrap.o
fitz/fitz_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /* tp_print */
^
/Library/Frameworks/Python.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);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
fitz/fitz_wrap.c:1923:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, / tp_print */
^
/Library/Frameworks/Python.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);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found
#include <fitz.h>
^~~~~~~~
2 warnings and 1 error generated.
error: command '/usr/bin/gcc' failed with exit code 1
ERROR: Failed building wheel for PyMuPDF
Running setup.py clean for PyMuPDF
Failed to build PyMuPDF
Installing collected packages: PyMuPDF
Running setup.py install for PyMuPDF ... error
ERROR: Command errored out with exit status 1:
command: /Users/ht/Venv/pdf2xls/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"'; file='"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-record-m_k3sx7p/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ht/Venv/pdf2xls/include/site/python3.8/PyMuPDF
cwd: /private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/
Complete output (39 lines):
running install
/Users/ht/Venv/pdf2xls/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-11-universal2-3.8
creating build/lib.macosx-11-universal2-3.8/fitz
copying fitz/init.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/fitz.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/utils.py -> build/lib.macosx-11-universal2-3.8/fitz
copying fitz/main.py -> build/lib.macosx-11-universal2-3.8/fitz
running build_ext
creating build/temp.macosx-11-universal2-3.8
creating build/temp.macosx-11-universal2-3.8/fitz
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/include/mupdf -I/usr/local/include -Imupdf/thirdparty/freetype/include -I/usr/local/include/freetype2 -I/usr/X11R6/include/freetype2 -I/opt/homebrew/include -I/opt/homebrew/include/mupdf -I/opt/homebrew/include/freetype2 -I/Users/ht/Venv/pdf2xls/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c fitz/fitz_wrap.c -o build/temp.macosx-11-universal2-3.8/fitz/fitz_wrap.o
fitz/fitz_wrap.c:1756:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, /* tp_print */
^
/Library/Frameworks/Python.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);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
fitz/fitz_wrap.c:1923:7: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
0, / tp_print */
^
/Library/Frameworks/Python.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);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
fitz/fitz_wrap.c:2755:10: fatal error: 'fitz.h' file not found
#include <fitz.h>
^~~~~~~~
2 warnings and 1 error generated.
error: command '/usr/bin/gcc' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/ht/Venv/pdf2xls/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"'; file='"'"'/private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-install-fc2lo9iy/pymupdf_3e1a1995f57b4d5eabc9e3b6917d4fa2/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /private/var/folders/4n/8f053jy17cbc8wnww48g8j0w0000gn/T/pip-record-m_k3sx7p/install-record.txt --single-version-externally-managed --compile --install-headers /Users/ht/Venv/pdf2xls/include/site/python3.8/PyMuPDF Check the logs for full command output.
Beta Was this translation helpful? Give feedback.
All reactions