Closed AnonTendim closed 1 year ago
Building wheel for numpy (pyproject.toml) did not run successfully.
Your error message indicates that it is a build error of numpy, not scikit-survival.
But I have installed NumPy successfully, and I have been using NumPy for other purposes. Why would this still happen? Thank you for your help!
It seems that numpy == 1.19.3
is enforced during build isolation, but M1 is only supported starting with numpy 1.21.0.
I probably should a line similar to https://github.com/scipy/oldest-supported-numpy/blob/7c61f628ef4e10a6954d65f1ea317a85d31eac0c/setup.cfg#L41
M1 chip MACOS.
Defaulting to user installation because normal site-packages is not writeable Collecting scikit-survival Using cached scikit-survival-0.18.0.tar.gz (2.5 MB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [1099 lines of output] Ignoring numpy: markers 'python_version == "3.8" and platform_system != "AIX"' don't match your environment Ignoring numpy: markers 'python_version == "3.10"' don't match your environment Ignoring numpy: markers 'python_version > "3.10"' don't match your environment Ignoring scikit-learn: markers 'python_version == "3.10"' don't match your environment Ignoring scikit-learn: markers 'python_version > "3.10"' don't match your environment Collecting setuptools>=45 Using cached setuptools-65.5.0-py3-none-any.whl (1.2 MB) Collecting packaging Using cached packaging-21.3-py3-none-any.whl (40 kB) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting setuptools_scm[toml]>=6.4 Using cached setuptools_scm-7.0.5-py3-none-any.whl (42 kB) Collecting Cython>=0.29.16 Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB) Collecting numpy==1.19.3 Using cached numpy-1.19.3.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 scikit-learn==1.1 Using cached scikit_learn-1.1.0-cp39-cp39-macosx_12_0_arm64.whl (7.6 MB) Collecting scipy>=1.3.2 Using cached scipy-1.9.3-cp39-cp39-macosx_12_0_arm64.whl (28.6 MB) Collecting joblib>=1.0.0 Using cached joblib-1.2.0-py3-none-any.whl (297 kB) Collecting threadpoolctl>=2.0.0 Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB) Collecting pyparsing!=3.0.5,>=2.0.2 Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB) Collecting typing-extensions Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB) Collecting tomli>=1.0.0 Using cached tomli-2.0.1-py3-none-any.whl (12 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
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.