automl / auto-sklearn

Automated Machine Learning with scikit-learn
https://automl.github.io/auto-sklearn
BSD 3-Clause "New" or "Revised" License
7.66k stars 1.28k forks source link

Unable to install autosklearn in kaggle #1725

Open Leo-Sharm opened 8 months ago

Leo-Sharm commented 8 months ago

Describe the bug

I am trying to use Autosklearn in my Kaggle Notebook, but facing error, I tried using sklearn==1.0.1 and as well as 0.24 , both showed the same error. I also tried setuptools < 60.0 still has the same issue

To Reproduce

Steps to reproduce the behavior: !pip install scikit-learn==0.24 import sklearn as t t.version !pip install cython !pip install auto-sklearn

Expected behavior

Building wheel for scikit-learn (pyproject.toml) ... error error: subprocess-exited-with-error

× Building wheel for scikit-learn (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [1393 lines of output]

:17: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html Partial import of sklearn during the build process. :116: DeprecationWarning: `numpy.distutils` is deprecated since NumPy 1.23.0, as a result of the deprecation of `distutils` itself. It will be removed for Python >= 3.12. For older Python versions it will remain present. It is recommended to use `setuptools < 60.0` for those Python versions. For more details, see: https://numpy.org/devdocs/reference/distutils_status_migration.html
andreaschandra commented 8 months ago

any update on this?

JacksonBurns commented 4 months ago

What version of Python is this? The latest version of Python in which I have been able to install auto-sklearn is 3.9

ImadSaddik commented 1 month ago

Hi @Leo-Sharm and @andreaschandra. I managed to solve the issue!

I created a new Conda environment with Python 3.7 and ran:

pip install auto-sklearn

At the end, I got a message saying Successfully built auto-sklearn.