ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects #232

Open
opened 2026-01-29 21:45:54 +00:00 by claunia · 0 comments
Owner

Originally created by @reagle on GitHub (Aug 22, 2022).

Using python 3.10 on macOS 12.5.1 21G83 arm64

...
            2 warnings generated.
            clang -bundle -undefined dynamic_lookup -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/reagle/.pyenv/versions/3.10.6/lib -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/reagle/.pyenv/versions/3.10.6/lib -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/_multiarray_tests.o build/temp.macosx-12.5-arm64-3.10/numpy/core/src/common/mem_overlap.o -Lbuild/temp.macosx-12.5-arm64-3.10 -lnpymath -o build/lib.macosx-12.5-arm64-3.10/numpy/core/_multiarray_tests.cpython-310-darwin.so
            building 'numpy.core._multiarray_umath' extension
            compiling C sources
            C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include

            creating build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray
            creating build/temp.macosx-12.5-arm64-3.10/numpy/core/src/umath
            creating build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/umath
            creating build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/common
            creating build/temp.macosx-12.5-arm64-3.10/private
            creating build/temp.macosx-12.5-arm64-3.10/private/var
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils
            creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils/src
            compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/umath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/reagle/.pyenv/versions/3.10.6/include/python3.10 -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -c'
            extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers'
            clang: numpy/core/src/multiarray/alloc.c
            clang: numpy/core/src/multiarray/array_assign_scalar.c
            clang: numpy/core/src/multiarray/buffer.c
            clang: numpy/core/src/multiarray/common.c
            clang: numpy/core/src/multiarray/conversion_utils.c
            clang: numpy/core/src/multiarray/datetime_strings.c
            clang: numpy/core/src/multiarray/descriptor.c
            clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/einsum.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/multiarray/hashdescr.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/multiarray/multiarraymodule.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/multiarray/nditer_constr.c
            clang: numpy/core/src/multiarray/scalarapi.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/lowlevel_strided_loops.c
            clang: numpy/core/src/multiarray/vdot.c
            clang: numpy/core/src/multiarray/temp_elide.c
            clang: numpy/core/src/multiarray/refcount.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/umath/loops.c
            clang: numpy/core/src/umath/ufunc_object.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/umath/ufunc_type_resolution.c
            clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath/ieee754.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/common/array_assign.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: numpy/core/src/common/ucsnarrow.c
            clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/common/npy_cpu_features.c
            clang: /private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils/src/apple_sgemv_fix.c
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly
            error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/umath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/reagle/.pyenv/versions/3.10.6/include/python3.10 -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -c numpy/core/src/multiarray/buffer.c -o build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/buffer.o -MMD -MF build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/buffer.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" 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 numpy
      Failed to build numpy
      ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
❯
Originally created by @reagle on GitHub (Aug 22, 2022). Using python 3.10 on macOS 12.5.1 21G83 arm64 ``` ... 2 warnings generated. clang -bundle -undefined dynamic_lookup -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/reagle/.pyenv/versions/3.10.6/lib -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/readline/lib -L/Users/reagle/.pyenv/versions/3.10.6/lib -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/_multiarray_tests.o build/temp.macosx-12.5-arm64-3.10/numpy/core/src/common/mem_overlap.o -Lbuild/temp.macosx-12.5-arm64-3.10 -lnpymath -o build/lib.macosx-12.5-arm64-3.10/numpy/core/_multiarray_tests.cpython-310-darwin.so building 'numpy.core._multiarray_umath' extension compiling C sources C compiler: clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include creating build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray creating build/temp.macosx-12.5-arm64-3.10/numpy/core/src/umath creating build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/umath creating build/temp.macosx-12.5-arm64-3.10/build/src.macosx-12.5-arm64-3.10/numpy/core/src/common creating build/temp.macosx-12.5-arm64-3.10/private creating build/temp.macosx-12.5-arm64-3.10/private/var creating build/temp.macosx-12.5-arm64-3.10/private/var/folders creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2 creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils creating build/temp.macosx-12.5-arm64-3.10/private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils/src compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/umath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/reagle/.pyenv/versions/3.10.6/include/python3.10 -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -c' extra options: '-faltivec -I/System/Library/Frameworks/vecLib.framework/Headers' clang: numpy/core/src/multiarray/alloc.c clang: numpy/core/src/multiarray/array_assign_scalar.c clang: numpy/core/src/multiarray/buffer.c clang: numpy/core/src/multiarray/common.c clang: numpy/core/src/multiarray/conversion_utils.c clang: numpy/core/src/multiarray/datetime_strings.c clang: numpy/core/src/multiarray/descriptor.c clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/einsum.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/hashdescr.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/multiarraymodule.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/multiarray/nditer_constr.c clang: numpy/core/src/multiarray/scalarapi.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/lowlevel_strided_loops.c clang: numpy/core/src/multiarray/vdot.c clang: numpy/core/src/multiarray/temp_elide.c clang: numpy/core/src/multiarray/refcount.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/umath/loops.c clang: numpy/core/src/umath/ufunc_object.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/umath/ufunc_type_resolution.c clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath/ieee754.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/array_assign.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: numpy/core/src/common/ucsnarrow.c clang: build/src.macosx-12.5-arm64-3.10/numpy/core/src/common/npy_cpu_features.c clang: /private/var/folders/2l/73vdx0sd5rvcn38yg036h6500000gp/T/pip-install-fbbelvi2/numpy_ce74744c5c82485781086dfe0358f17f/numpy/_build_utils/src/apple_sgemv_fix.c clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly clang: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly error: Command "clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DNO_ATLAS_INFO=3 -DHAVE_CBLAS -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/umath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Inumpy/core/include -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/reagle/.pyenv/versions/3.10.6/include/python3.10 -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/common -Ibuild/src.macosx-12.5-arm64-3.10/numpy/core/src/npymath -c numpy/core/src/multiarray/buffer.c -o build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/buffer.o -MMD -MF build/temp.macosx-12.5-arm64-3.10/numpy/core/src/multiarray/buffer.o.d -faltivec -I/System/Library/Frameworks/vecLib.framework/Headers" 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 numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. ❯ ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#232