Skip to content

Sklearn pip installation broke because of issues with setuptools #24992

Closed
@victorosorioparis

Description

@victorosorioparis

Describe the bug

Apparently because of this other issue pypa/setuptools#3693

Installation of sklearn breaks with pip install right now.

File "/tmp/pip-build-env-mmiaw08q/overlay/lib/python3.10/site-packages/numpy/distutils/log.py", line 4, in <module>
           from distutils.log import Log as old_Log
       ImportError: cannot import name 'Log' from 'distutils.log' (/tmp/pip-build-env-mmiaw08q/overlay/lib/python3.10/site-packages/setuptools/_distutils/log.py)

I've read some other teams sticking to setuptools 65.5.1 for the moment, scikit learn seems to be aiming at 60+

Steps/Code to Reproduce

pip install scikit_learn

Expected Results

No error should be thrown

Actual Results

File "/tmp/pip-build-env-mmiaw08q/overlay/lib/python3.10/site-packages/numpy/distutils/log.py", line 4, in <module>
           from distutils.log import Log as old_Log
       ImportError: cannot import name 'Log' from 'distutils.log' (/tmp/pip-build-env-mmiaw08q/overlay/lib/python3.10/site-packages/setuptools/_distutils/log.py)

Versions

all versions depending on setuptools 60+

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions