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 #11
I try to follow the installation suggested in the README file, but get the following error when running pip install -r requirements.txt:
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [950 lines of output]
Ignoring numpy: markers 'python_version < "3.9"' don't match your environment
Collecting cython>=0.29
Using cached Cython-3.0.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.2 kB)
Collecting numpy==1.19.4
Using cached numpy-1.19.4.zip (7.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting setuptools
Using cached setuptools-70.0.0-py3-none-any.whl.metadata (5.9 kB)
Collecting setuptools_scm
Using cached setuptools_scm-8.1.0-py3-none-any.whl.metadata (6.6 kB)
Collecting wheel
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting packaging>=20 (from setuptools_scm)
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Using cached Cython-3.0.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
Using cached setuptools-70.0.0-py3-none-any.whl (863 kB)
Using cached setuptools_scm-8.1.0-py3-none-any.whl (43 kB)
Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Building wheels for collected packages: numpy
Building wheel for numpy (pyproject.toml): started
Building wheel for numpy (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for numpy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [912 lines of output]
setup.py:67: RuntimeWarning: NumPy 1.19.4 may not yet support Python 3.11.
warnings.warn(
Running from numpy source directory.
numpy/random/_bounded_integers.pxd.in has not changed
numpy/random/_common.pyx has not changed
numpy/random/_bounded_integers.pyx.in has not changed
Processing numpy/random/_bounded_integers.pyx
numpy/random/_pcg64.pyx has not changed
numpy/random/bit_generator.pyx has not changed
numpy/random/_generator.pyx has not changed
numpy/random/_sfc64.pyx has not changed
numpy/random/_philox.pyx has not changed
numpy/random/mtrand.pyx has not changed
numpy/random/_mt19937.pyx has not changed
Cythonizing sources
blas_opt_info:
blas_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
blis_info:
libraries blis not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_info:
libraries openblas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_threads_info:
Setting PTATLAS=ATLAS
libraries tatlas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_blas_info:
libraries satlas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_threads_info:
Setting PTATLAS=ATLAS
libraries ptf77blas,ptcblas,atlas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_blas_info:
libraries f77blas,cblas,atlas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
accelerate_info:
NOT AVAILABLE
/tmp/pip-install-ul6a4h44/numpy_74a49f23cd684fb9bb4261b82c0ecb1a/numpy/distutils/system_info.py:1914: UserWarning:
Optimized (vendor) Blas libraries are not found.
Falls back to netlib Blas library which has worse performance.
A better performance should be easily gained by switching
Blas library.
if self._calc_info(blas):
blas_info:
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating /tmp/tmprmst0930/tmp
creating /tmp/tmprmst0930/tmp/tmprmst0930
compile options: '-I/usr/local/include -I/usr/include -I/home/paperspace/Dragonfly/venv/include -c'
x86_64-linux-gnu-gcc: /tmp/tmprmst0930/source.c
x86_64-linux-gnu-gcc /tmp/tmprmst0930/tmp/tmprmst0930/source.o -L/usr/lib/x86_64-linux-gnu -lblas -o /tmp/tmprmst0930/a.out
FOUND:
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
include_dirs = ['/usr/local/include', '/usr/include', '/home/paperspace/Dragonfly/venv/include']
language = c
define_macros = [('HAVE_CBLAS', None)]
FOUND:
define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
libraries = ['blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
include_dirs = ['/usr/local/include', '/usr/include', '/home/paperspace/Dragonfly/venv/include']
language = c
non-existing path in 'numpy/distutils': 'site.cfg'
lapack_opt_info:
lapack_mkl_info:
libraries mkl_rt not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_lapack_info:
libraries openblas not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_clapack_info:
libraries openblas,lapack not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
flame_info:
libraries flame not found in ['/home/paperspace/Dragonfly/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries tatlas,tatlas not found in /home/paperspace/Dragonfly/venv/lib
libraries lapack_atlas not found in /usr/local/lib
libraries tatlas,tatlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries tatlas,tatlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries tatlas,tatlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries tatlas,tatlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
NOT AVAILABLE
atlas_3_10_info:
libraries lapack_atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries satlas,satlas not found in /home/paperspace/Dragonfly/venv/lib
libraries lapack_atlas not found in /usr/local/lib
libraries satlas,satlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries satlas,satlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries satlas,satlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries satlas,satlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_3_10_info'>
NOT AVAILABLE
atlas_threads_info:
Setting PTATLAS=ATLAS
libraries lapack_atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries ptf77blas,ptcblas,atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries lapack_atlas not found in /usr/local/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries ptf77blas,ptcblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries ptf77blas,ptcblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries ptf77blas,ptcblas,atlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_threads_info'>
NOT AVAILABLE
atlas_info:
libraries lapack_atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries f77blas,cblas,atlas not found in /home/paperspace/Dragonfly/venv/lib
libraries lapack_atlas not found in /usr/local/lib
libraries f77blas,cblas,atlas not found in /usr/local/lib
libraries lapack_atlas not found in /usr/lib64
libraries f77blas,cblas,atlas not found in /usr/lib64
libraries lapack_atlas not found in /usr/lib
libraries f77blas,cblas,atlas not found in /usr/lib
libraries lapack_atlas not found in /usr/lib/x86_64-linux-gnu
libraries f77blas,cblas,atlas not found in /usr/lib/x86_64-linux-gnu
<class 'numpy.distutils.system_info.atlas_info'>
NOT AVAILABLE
lapack_info:
FOUND:
libraries = ['lapack', 'lapack']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
language = f77
FOUND:
libraries = ['lapack', 'lapack', 'blas', 'blas']
library_dirs = ['/usr/lib/x86_64-linux-gnu']
language = c
define_macros = [('NO_ATLAS_INFO', 1), ('HAVE_CBLAS', None)]
include_dirs = ['/usr/local/include', '/usr/include', '/home/paperspace/Dragonfly/venv/include']
/tmp/pip-build-env-9aduoj6_/overlay/lib/python3.11/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
warnings.warn(msg)
running bdist_wheel
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building py_modules sources
building library "npymath" sources
adding 'build/src.linux-x86_64-3.11/numpy/core/src/npymath' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-3.11/numpy/core/src/npymath/npy_math_internal.h']
building library "npysort" sources
adding 'build/src.linux-x86_64-3.11/numpy/core/src/common' to include_dirs.
None - nothing done with h_files = ['build/src.linux-x86_64-3.11/numpy/core/src/common/npy_sort.h', 'build/src.linux-x86_64-3.11/numpy/core/src/common/npy_partition.h', 'build/src.linux-x86_64-3.11/numpy/core/src/common/npy_binsearch.h']
building library "npyrandom" sources
building extension "numpy.core._multiarray_tests" sources
building extension "numpy.core._multiarray_umath" sources
adding 'build/src.linux-x86_64-3.11/numpy/core/src/umath' to include_dirs.
adding 'build/src.linux-x86_64-3.11/numpy/core/src/npymath' to include_dirs.
adding 'build/src.linux-x86_64-3.11/numpy/core/src/common' to include_dirs.
numpy.core - nothing done with h_files = ['build/src.linux-x86_64-3.11/numpy/core/src/umath/funcs.inc', 'build/src.linux-x86_64-3.11/numpy/core/src/umath/simd.inc', 'build/src.linux-x86_64-3.11/numpy/core/src/umath/loops.h', 'build/src.linux-x86_64-3.11/numpy/core/src/umath/matmul.h', 'build/src.linux-x86_64-3.11/numpy/core/src/umath/clip.h', 'build/src.linux-x86_64-3.11/numpy/core/src/npymath/npy_math_internal.h', 'build/src.linux-x86_64-3.11/numpy/core/src/common/templ_common.h', 'build/src.linux-x86_64-3.11/numpy/core/include/numpy/config.h', 'build/src.linux-x86_64-3.11/numpy/core/include/numpy/_numpyconfig.h', 'build/src.linux-x86_64-3.11/numpy/core/include/numpy/__multiarray_api.h', 'build/src.linux-x86_64-3.11/numpy/core/include/numpy/__ufunc_api.h']
building extension "numpy.core._umath_tests" sources
building extension "numpy.core._rational_tests" sources
building extension "numpy.core._struct_ufunc_tests" sources
building extension "numpy.core._operand_flag_tests" sources
building extension "numpy.fft._pocketfft_internal" sources
building extension "numpy.linalg.lapack_lite" sources
building extension "numpy.linalg._umath_linalg" sources
building extension "numpy.random._mt19937" sources
building extension "numpy.random._philox" sources
building extension "numpy.random._pcg64" sources
building extension "numpy.random._sfc64" sources
building extension "numpy.random._common" sources
building extension "numpy.random.bit_generator" sources
building extension "numpy.random._generator" sources
building extension "numpy.random._bounded_integers" sources
building extension "numpy.random.mtrand" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
creating build/lib.linux-x86_64-3.11
creating build/lib.linux-x86_64-3.11/numpy
copying numpy/dual.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/matlib.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/_globals.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/_pytesttester.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/ctypeslib.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/_distributor_init.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/__init__.py -> build/lib.linux-x86_64-3.11/numpy
copying numpy/setup.py -> build/lib.linux-x86_64-3.11/numpy
(...)
copying numpy/tests/test_public_api.py -> build/lib.linux-x86_64-3.11/numpy/tests
copying numpy/tests/test_warnings.py -> build/lib.linux-x86_64-3.11/numpy/tests
copying numpy/tests/test_matlib.py -> build/lib.linux-x86_64-3.11/numpy/tests
copying numpy/tests/__init__.py -> build/lib.linux-x86_64-3.11/numpy/tests
copying numpy/tests/test_numpy_version.py -> build/lib.linux-x86_64-3.11/numpy/tests
running build_clib
customize UnixCCompiler
customize UnixCCompiler using new_build_clib
building 'npymath' library
compiling C sources
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating build/temp.linux-x86_64-3.11
creating build/temp.linux-x86_64-3.11/numpy
creating build/temp.linux-x86_64-3.11/numpy/core
creating build/temp.linux-x86_64-3.11/numpy/core/src
creating build/temp.linux-x86_64-3.11/numpy/core/src/npymath
creating build/temp.linux-x86_64-3.11/build
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/npymath
compile options: '-Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c'
extra options: '-std=c99'
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npymath/ieee754.c
x86_64-linux-gnu-gcc: numpy/core/src/npymath/npy_math.c
x86_64-linux-gnu-gcc: numpy/core/src/npymath/halffloat.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npymath/npy_math_complex.c
x86_64-linux-gnu-gcc-ar: adding 4 object files to build/temp.linux-x86_64-3.11/libnpymath.a
building 'npysort' library
compiling C sources
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/npysort
compile options: '-Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c'
extra options: '-std=c99'
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/mergesort.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/timsort.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/heapsort.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/quicksort.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/selection.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/radixsort.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npysort/binsearch.c
x86_64-linux-gnu-gcc-ar: adding 7 object files to build/temp.linux-x86_64-3.11/libnpysort.a
building 'npyrandom' library
compiling C sources
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating build/temp.linux-x86_64-3.11/numpy/random
creating build/temp.linux-x86_64-3.11/numpy/random/src
creating build/temp.linux-x86_64-3.11/numpy/random/src/distributions
compile options: '-Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c'
extra options: '-std=c99'
x86_64-linux-gnu-gcc: numpy/random/src/distributions/random_hypergeometric.c
x86_64-linux-gnu-gcc: numpy/random/src/distributions/random_mvhg_count.c
x86_64-linux-gnu-gcc: numpy/random/src/distributions/random_mvhg_marginals.c
x86_64-linux-gnu-gcc: numpy/random/src/distributions/distributions.c
x86_64-linux-gnu-gcc: numpy/random/src/distributions/logfactorial.c
x86_64-linux-gnu-gcc-ar: adding 5 object files to build/temp.linux-x86_64-3.11/libnpyrandom.a
running build_ext
customize UnixCCompiler
customize UnixCCompiler using new_build_ext
building 'numpy.core._multiarray_tests' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray
creating build/temp.linux-x86_64-3.11/numpy/core/src/common
compile options: '-DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c'
extra options: '-std=c99'
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/_multiarray_tests.c
x86_64-linux-gnu-gcc: numpy/core/src/common/mem_overlap.c
x86_64-linux-gnu-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/_multiarray_tests.o build/temp.linux-x86_64-3.11/numpy/core/src/common/mem_overlap.o -L/usr/lib/x86_64-linux-gnu -Lbuild/temp.linux-x86_64-3.11 -lnpymath -o build/lib.linux-x86_64-3.11/numpy/core/_multiarray_tests.cpython-311-x86_64-linux-gnu.so
building 'numpy.core._multiarray_umath' extension
compiling C sources
C compiler: x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
creating build/temp.linux-x86_64-3.11/numpy/core/src/multiarray
creating build/temp.linux-x86_64-3.11/numpy/core/src/umath
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/umath
creating build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/common
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=1 -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/paperspace/Dragonfly/venv/include -Ibuild/src.linux-x86_64-3.11/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c'
extra options: '-std=c99'
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/alloc.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/array_assign_scalar.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/buffer.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/common.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/conversion_utils.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/datetime_strings.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/descriptor.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/einsum.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/arrayobject.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/array_assign_array.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/ctors.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/convert.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/calculation.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/datetime_busday.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/arrayfunction_override.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/convert_datatype.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/hashdescr.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/item_selection.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/datetime_busdaycal.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/compiled_base.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/arraytypes.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/dragon4.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/lowlevel_strided_loops.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/multiarraymodule.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/datetime.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/dtype_transfer.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/nditer_constr.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/iterators.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/refcount.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/sequence.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/nditer_pywrap.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/scalarapi.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/shape.c
numpy/core/src/multiarray/scalarapi.c: In function ‘PyArray_Scalar’:
numpy/core/src/multiarray/scalarapi.c:759:13: warning: ‘ob_shash’ is deprecated [-Wdeprecated-declarations]
759 | ((PyStringObject *)obj)->ob_shash = -1;
| ^
In file included from /usr/include/python3.11/bytesobject.h:62,
from /usr/include/python3.11/Python.h:50,
from numpy/core/src/multiarray/scalarapi.c:2:
/usr/include/python3.11/cpython/bytesobject.h:7:35: note: declared here
7 | Py_DEPRECATED(3.11) Py_hash_t ob_shash;
| ^~~~~~~~
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/temp_elide.c
numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2967:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2967 | return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2967:12: error: too few arguments to function ‘_Py_HashDouble’
2967 | return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src: In function ‘cfloat_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2975:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2975 | hashreal = _Py_HashDouble((double)
| ^~~~~~~~
| |
| double
2976 | PyArrayScalar_VAL(obj, C@name@).real);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2975:16: error: too few arguments to function ‘_Py_HashDouble’
2975 | hashreal = _Py_HashDouble((double)
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2981:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2981 | hashimag = _Py_HashDouble((double)
| ^~~~~~~~
| |
| double
2982 | PyArrayScalar_VAL(obj, C@name@).imag);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2981:16: error: too few arguments to function ‘_Py_HashDouble’
2981 | hashimag = _Py_HashDouble((double)
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2967:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2967 | return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2967:12: error: too few arguments to function ‘_Py_HashDouble’
2967 | return _Py_HashDouble((double) PyArrayScalar_VAL(obj, @name@));
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src: In function ‘clongdouble_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2975:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2975 | hashreal = _Py_HashDouble((double)
| ^~~~~~~~
| |
| double
2976 | PyArrayScalar_VAL(obj, C@name@).real);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2975:16: error: too few arguments to function ‘_Py_HashDouble’
2975 | hashreal = _Py_HashDouble((double)
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2981:31: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2981 | hashimag = _Py_HashDouble((double)
| ^~~~~~~~
| |
| double
2982 | PyArrayScalar_VAL(obj, C@name@).imag);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2981:16: error: too few arguments to function ‘_Py_HashDouble’
2981 | hashimag = _Py_HashDouble((double)
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2997:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
2997 | return _Py_HashDouble(npy_half_to_double(PyArrayScalar_VAL(obj, Half)));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| double
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:2997:12: error: too few arguments to function ‘_Py_HashDouble’
2997 | return _Py_HashDouble(npy_half_to_double(PyArrayScalar_VAL(obj, Half)));
| ^~~~~~~~~~~~~~
In file included from /usr/include/python3.11/Python.h:47,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/usr/include/python3.11/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2968:1: warning: control reaches end of non-void function [-Wreturn-type]
2968 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2968:1: warning: control reaches end of non-void function [-Wreturn-type]
2968 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:2998:1: warning: control reaches end of non-void function [-Wreturn-type]
2998 | }
| ^
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/vdot.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/typeinfo.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/loops.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/usertypes.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/umathmodule.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/number.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/ufunc_object.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/reduction.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/multiarray/nditer_templ.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/ufunc_type_resolution.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/flagsobject.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npymath/ieee754.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/npymath/npy_math_complex.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/getset.c
x86_64-linux-gnu-gcc: numpy/core/src/npymath/halffloat.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/override.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/nditer_api.c
x86_64-linux-gnu-gcc: numpy/core/src/common/array_assign.c
x86_64-linux-gnu-gcc: numpy/core/src/common/ucsnarrow.c
x86_64-linux-gnu-gcc: numpy/core/src/common/mem_overlap.c
x86_64-linux-gnu-gcc: numpy/core/src/npymath/npy_math.c
x86_64-linux-gnu-gcc: numpy/core/src/common/ufunc_override.c
x86_64-linux-gnu-gcc: numpy/core/src/common/numpyos.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/common/npy_cpu_features.c
x86_64-linux-gnu-gcc: numpy/core/src/common/npy_longdouble.c
x86_64-linux-gnu-gcc: numpy/core/src/common/cblasfuncs.c
x86_64-linux-gnu-gcc: numpy/core/src/umath/extobj.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/scalarmath.c
x86_64-linux-gnu-gcc: numpy/core/src/common/python_xerbla.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/mapping.c
x86_64-linux-gnu-gcc: numpy/core/src/multiarray/methods.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/matmul.c
x86_64-linux-gnu-gcc: build/src.linux-x86_64-3.11/numpy/core/src/umath/clip.c
error: Command "x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -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=1 -DHAVE_CBLAS -I/usr/local/include -I/usr/include -I/home/paperspace/Dragonfly/venv/include -Ibuild/src.linux-x86_64-3.11/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.11/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/home/paperspace/Dragonfly/venv/include -I/usr/include/python3.11 -Ibuild/src.linux-x86_64-3.11/numpy/core/src/common -Ibuild/src.linux-x86_64-3.11/numpy/core/src/npymath -c build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-3.11/build/src.linux-x86_64-3.11/numpy/core/src/multiarray/scalartypes.o.d -std=c99" 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.
Is there a specific version of Python required? I'm not very familiar with package dependencies. I didn't use the conda command for creating the environment but python3 -m venv venv.
I try to follow the installation suggested in the README file, but get the following error when running
pip install -r requirements.txt
:Is there a specific version of Python required? I'm not very familiar with package dependencies. I didn't use the conda command for creating the environment but
python3 -m venv venv
.