Skip to content

Instantly share code, notes, and snippets.

@looopTools
Created August 7, 2022 13:56
Show Gist options
  • Save looopTools/d06325f0cbaac6cd7b083cb5d9f1f21f to your computer and use it in GitHub Desktop.
Save looopTools/d06325f0cbaac6cd7b083cb5d9f1f21f to your computer and use it in GitHub Desktop.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psutil
Building wheel for cffi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [37 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.14-arm64-3.8
creating build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/backend_ctypes.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/error.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/setuptools_ext.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/__init__.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/cffi_opcode.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/vengine_gen.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/pkgconfig.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/model.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/ffiplatform.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/api.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/vengine_cpy.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/commontypes.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/lock.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/recompiler.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/cparser.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/verifier.py -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/_cffi_include.h -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/parse_c_type.h -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/_embedding.h -> build/lib.macosx-10.14-arm64-3.8/cffi
copying cffi/_cffi_errors.h -> build/lib.macosx-10.14-arm64-3.8/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.macosx-10.14-arm64-3.8
creating build/temp.macosx-10.14-arm64-3.8/c
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -Werror=implicit-function-declaration -I/opt/homebrew/opt/llvm/include -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/ffi -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c c/_cffi_backend.c -o build/temp.macosx-10.14-arm64-3.8/c/_cffi_backend.o -iwithsysroot/usr/include/ffi
clang -bundle -undefined dynamic_lookup -arch arm64 -arch x86_64 -Wl,-headerpad,0x1000 -L/opt/homebrew/opt/llvm/lib -I/opt/homebrew/opt/llvm/include build/temp.macosx-10.14-arm64-3.8/c/_cffi_backend.o -lffi -o build/lib.macosx-10.14-arm64-3.8/_cffi_backend.cpython-38-darwin.so
ld: warning: dylib (/opt/homebrew/opt/llvm/lib/libunwind.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: warning: dylib (/opt/homebrew/opt/llvm/lib/libunwind.dylib) was built for newer macOS version (12.0) than being linked (11.0)
ld: in '/opt/homebrew/opt/llvm/lib/libunwind.dylib', building for macOS-x86_64 but attempting to link with file built for macOS-arm64
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build pyzmq psutil cffi
ERROR: Could not build wheels for pyzmq, psutil, which is required to install pyproject.toml-based projects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment