Skip to content

I did not manage to install niwidgets #88

@celprov

Description

@celprov

Despite scikit-learn already being installed in my environment, pip install triggers the built of a scikit-learn wheel that systematically fails.
I have tried using python 3.10, 3.11 and 3.12 but all versions return different errorŝ when building this wheel.

  • Python 3.11 complains about a missing file:

INFO: gcc: sklearn/__check_build/_check_build.c
sklearn/__check_build/_check_build.c:211:12: fatal error: longintrepr.h: No such file or directory

  • Python 3.12 has a problem with the version of numpy:

Building wheels for collected packages: scikit-learn
Building wheel for scikit-learn (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
/tmp/pip-install-m688sjjw/scikit-learn_b20a85065f1d4d01b5f0ebdd6b818cd7/setup.py:12: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import parse_version
Partial import of sklearn during the build process.
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-m688sjjw/scikit-learn_b20a85065f1d4d01b5f0ebdd6b818cd7/setup.py", line 250, in
setup_package()
File "/tmp/pip-install-m688sjjw/scikit-learn_b20a85065f1d4d01b5f0ebdd6b818cd7/setup.py", line 242, in setup_package
from numpy.distutils.core import setup
ModuleNotFoundError: No module named 'numpy.distutils'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for scikit-learn
Running setup.py clean for scikit-learn
Failed to build scikit-learn

  • Python 3.10 is hitting C-level warnings and errors because of deprecated Python C-API functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions