Question: I'm trying to install numpy (2.2.3) with PyPy 7.3.19 (Python 3.11.11). I'm using PyPy in a .venv folder. While the venv is active, I've tried running these commands:  python -m pip install numpy pip install numpy pypy -m pip install numpy  First windows flagged the install as a virus:  This was fixed by allowing the threat. After this was fixed I got this error (error has been truncated to fit stack overflow):  [402/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_legacy_array_method.c.obj [403/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_extobj.c.obj [404/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_npysort_heapsort.cpp.obj [405/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_reduction.c.obj [406/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_override.c.obj [407/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_dispatching.cpp.obj [408/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_ufunc_type_resolution.c.obj [409/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_clip.cpp.obj [410/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_wrapping_array_method.c.obj [411/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath__scaled_float_dtype.c.obj [412/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_special_integer_comparisons.cpp.obj [413/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_SSE42.a.p\\_simd_inc.h' [414/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_SSE42.a.p\\_simd_data.inc' [415/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX2.a.p\\_simd_data.inc' [416/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_SSE42.a.p\\_simd.dispatch.c' [417/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX2.a.p\\_simd_inc.h' [418/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/meson-generated_lowlevel_strided_loops.c.obj [419/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_FMA3.a.p\\_simd_inc.h' [420/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX2.a.p\\_simd.dispatch.c' [421/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_FMA3.a.p\\_simd_data.inc' [422/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_FMA3.a.p\\_simd.dispatch.c' [423/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512F.a.p\\_simd_inc.h' [424/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_ufunc_object.c.obj [425/530] Compiling C++ object numpy/_core/libx86_simd_argsort.dispatch.h_AVX2.a.p/src_npysort_x86_simd_argsort.dispatch.cpp.obj [426/530] Linking static target numpy/_core/libx86_simd_argsort.dispatch.h_AVX2.a [427/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_npysort_quicksort.cpp.obj [428/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_npysort_selection.cpp.obj [429/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512F.a.p\\_simd_data.inc' [430/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512_SKX.a.p\\_simd_inc.h' [431/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_stringdtype_ufuncs.cpp.obj [432/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512_SKX.a.p\\_simd_data.inc' [433/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512F.a.p\\_simd.dispatch.c' [434/530] Generating 'numpy\\_core\\lib_simd.dispatch.h_AVX512_SKX.a.p\\_simd.dispatch.c' [435/530] Compiling C object numpy/_core/_simd.pypy311-pp73-win_amd64.pyd.p/src__simd__simd.c.obj [436/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_litemodule.c.obj [437/530] Compiling C object numpy/_core/_simd.pypy311-pp73-win_amd64.pyd.p/src_common_npy_cpu_features.c.obj [438/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_python_xerbla.c.obj [439/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c.c.obj [440/530] Compiling C object numpy/_core/libloops_autovec.dispatch.h_AVX2.a.p/meson-generated_loops_autovec.dispatch.c.obj [441/530] Linking static target numpy/_core/libloops_autovec.dispatch.h_AVX2.a [442/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_string_ufuncs.cpp.obj [443/530] Linking static target numpy/_core/lib_multiarray_umath_mtargets.a [444/530] Compiling C object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_umath_umathmodule.c.obj [445/530] Compiling C++ object numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd.p/src_npysort_timsort.cpp.obj [446/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_config.c.obj [447/530] Linking target numpy/_core/_multiarray_umath.pypy311-pp73-win_amd64.pyd [448/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_lapack.c.obj [449/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_python_xerbla.c.obj [450/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c.c.obj [451/530] Compiling C object numpy/_core/lib_simd.dispatch.h_SSE42.a.p/meson-generated__simd.dispatch.c.obj [452/530] Linking static target numpy/_core/lib_simd.dispatch.h_SSE42.a [453/530] Compiling C object numpy/_core/lib_simd.dispatch.h_baseline.a.p/meson-generated__simd.dispatch.c.obj [454/530] Linking static target numpy/_core/lib_simd.dispatch.h_baseline.a [455/530] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX512_SKX.a.p/meson-generated__simd.dispatch.c.obj [456/530] Linking static target numpy/_core/lib_simd.dispatch.h_AVX512_SKX.a [457/530] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX2.a.p/meson-generated__simd.dispatch.c.obj [458/530] Linking static target numpy/_core/lib_simd.dispatch.h_AVX2.a [459/530] Compiling C object numpy/_core/lib_simd.dispatch.h_FMA3.a.p/meson-generated__simd.dispatch.c.obj [460/530] Linking static target numpy/_core/lib_simd.dispatch.h_FMA3.a [461/530] Compiling C object numpy/_core/lib_simd.dispatch.h_AVX512F.a.p/meson-generated__simd.dispatch.c.obj [462/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_config.c.obj [463/530] Linking static target numpy/_core/lib_simd.dispatch.h_AVX512F.a [464/530] Linking static target numpy/_core/lib_simd_mtargets.a [465/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_z_lapack.c.obj [466/530] Linking target numpy/_core/_simd.pypy311-pp73-win_amd64.pyd [467/530] Compiling C object numpy/random/libnpyrandom.a.p/src_distributions_logfactorial.c.obj [468/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_lapack.c.obj [469/530] Compiling C object numpy/random/libnpyrandom.a.p/src_distributions_random_mvhg_count.c.obj [470/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_c_lapack.c.obj [471/530] Compiling C object numpy/random/libnpyrandom.a.p/src_distributions_random_mvhg_marginals.c.obj [472/530] Compiling C++ object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/umath_linalg.cpp.obj [473/530] Compiling C object numpy/random/libnpyrandom.a.p/src_distributions_random_hypergeometric.c.obj [474/530] Copying file numpy/random/__init__.py [475/530] Compiling C object numpy/random/libnpyrandom.a.p/src_distributions_distributions.c.obj [476/530] Copying file numpy/random/_common.pxd [477/530] Copying file numpy/random/__init__.pxd [478/530] Linking static target numpy/random/libnpyrandom.a [479/530] Copying file numpy/random/bit_generator.pxd [480/530] Generating numpy/random/_bounded_integer_pxd with a custom command [481/530] Generating numpy/random/_bounded_integer_pyx with a custom command [482/530] Copying file numpy/random/c_distributions.pxd [483/530] Copying file numpy/random/_generator.pyx [484/530] Copying file numpy/random/mtrand.pyx [485/530] Compiling C object numpy/random/_mt19937.pypy311-pp73-win_amd64.pyd.p/src_mt19937_mt19937.c.obj [486/530] Compiling C object numpy/random/_mt19937.pypy311-pp73-win_amd64.pyd.p/src_mt19937_mt19937-jump.c.obj [487/530] Compiling C object numpy/random/_philox.pypy311-pp73-win_amd64.pyd.p/src_philox_philox.c.obj [488/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_c_lapack.c.obj [489/530] Compiling C object numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/src_pcg64_pcg64.c.obj [490/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_blas.c.obj [491/530] Compiling C object numpy/random/_sfc64.pypy311-pp73-win_amd64.pyd.p/src_sfc64_sfc64.c.obj [492/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_d_lapack.c.obj [493/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/_pcg64.pyx [494/530] Compiling C object numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/meson-generated_numpy_random__pcg64.pyx.c.obj FAILED: numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/meson-generated_numpy_random__pcg64.pyx.c.obj "cc" "-Inumpy\random\_pcg64.pypy311-pp73-win_amd64.pyd.p" "-Inumpy\random" "-I..\numpy\random" "-I..\numpy\random\src" "-Inumpy\_core" "-I..\numpy\_core" "-Inumpy\_core\include" "-I..\numpy\_core\include" "-I..\numpy\_core\src\common" "-Inumpy" "-IC:\pypy3\Include" "-IC:\Users\semva\AppData\Local\Temp\pip-install-0q1qbetl\numpy_627fd22ca8764d2db937a682f82fea68\.mesonpy-2vaxsk5m\meson_cpu" "-fvisibility=hidden" "-fdiagnostics-color=always" "-DNDEBUG" "-Wall" "-Winvalid-pch" "-std=c11" "-O3" "-fno-strict-aliasing" "-msse" "-msse2" "-msse3" "-DNPY_HAVE_SSE2" "-DNPY_HAVE_SSE" "-DNPY_HAVE_SSE3" "-mlong-double-64" "-D__USE_MINGW_ANSI_STDIO=1" "-DMS_WIN64=" "-D_FILE_OFFSET_BITS=64" "-D_LARGEFILE_SOURCE=1" "-D_LARGEFILE64_SOURCE=1" "-DNPY_NO_DEPRECATED_API=0" "-U__GNUC_GNU_INLINE__" -MD -MQ numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/meson-generated_numpy_random__pcg64.pyx.c.obj -MF "numpy\random\_pcg64.pypy311-pp73-win_amd64.pyd.p\meson-generated_numpy_random__pcg64.pyx.c.obj.d" -o numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/meson-generated_numpy_random__pcg64.pyx.c.obj "-c" numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/numpy/random/_pcg64.pyx.c numpy/random/_pcg64.pypy311-pp73-win_amd64.pyd.p/numpy/random/_pcg64.pyx.c:14014:12: fatal error: internal/pycore_frame.h: No such file or directory 14014 | #include "internal/pycore_frame.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [495/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/_mt19937.pyx [496/530] Compiling C object numpy/linalg/lapack_lite.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_s_lapack.c.obj [497/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/_philox.pyx [498/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/_sfc64.pyx [499/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_z_lapack.c.obj [500/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/bit_generator.pyx [501/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_d_lapack.c.obj [502/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_blas.c.obj [503/530] Compiling Cython source numpy/random/_bounded_integers.pyx [504/530] Compiling C object numpy/linalg/_umath_linalg.pypy311-pp73-win_amd64.pyd.p/lapack_lite_f2c_s_lapack.c.obj [505/530] Compiling Cython source C:/Users/semva/AppData/Local/Temp/pip-install-0q1qbetl/numpy_627fd22ca8764d2db937a682f82fea68/numpy/random/_common.pyx [506/530] Compiling C++ object numpy/fft/_pocketfft_umath.pypy311-pp73-win_amd64.pyd.p/_pocketfft_umath.cpp.obj [507/530] Compiling Cython source numpy/random/_generator.pyx ninja: build stopped: subcommand failed. INFO: autodetecting backend as ninja INFO: calculating backend command to run: C:\Users\semva\AppData\Local\Temp\pip-build-env-3vh8v_of\normal\Scripts\ninja.EXE [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed ├ù Encountered error while generating package metadata. Ôò░ÔöÇ> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. --end of error--  When trying to install numpy with Python 3.11 (without PyPy), it gets installed without errors. Software information:  pypy --version: [PyPy 7.3.19 with MSC v.1941 64 bit (AMD64)] os: Windows 11 24H2 

Answer: There are wheels for the next NumPy version available on anacoda.org, you can use them with ` pip install -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy