Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip installaton failed on mac and Ubuntu #1740

Open
gaohongwei opened this issue Sep 21, 2024 · 1 comment
Open

pip installaton failed on mac and Ubuntu #1740

gaohongwei opened this issue Sep 21, 2024 · 1 comment

Comments

@gaohongwei
Copy link

gaohongwei commented Sep 21, 2024

Short Question Description

I have tried to install on mac and ubuntu. Both are failed.
Ubuntu 22.04.4 LTS
Python 3.10 (Add #1260: Support for Python 3.10)

System Details (if relevant)

  • Ubuntu
    PRETTY_NAME="Ubuntu 22.04.4 LTS"
    NAME="Ubuntu"
    VERSION_ID="22.04"
    VERSION="22.04.4 LTS (Jammy Jellyfish)"

  • Python 3.10.12

  • pip install auto-sklearn==0.14.7 or 0.15.0

  • Error on Mac

  • Preparing metadata (pyproject.toml) ... error
    error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [34 lines of output]

  • Error on Ubuntu
  •   performance hint: sklearn/neighbors/_binary_tree.pxi:539:5: Exception check on 'dual_swap' will always require the GIL to be acquired.
    Possible solutions:
        1. Declare 'dual_swap' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
        2. Use an 'int' return type on 'dual_swap' to allow an error code to be returned.
    
    Error compiling Cython file:
    ------------------------------------------------------------
    ...
            # determine number of levels in the tree, and from this
            # the number of nodes in the tree.  This results in leaf nodes
            # with numbers of points between leaf_size and 2 * leaf_size
            self.n_levels = int(
                np.log2(fmax(1, (n_samples - 1) / self.leaf_size)) + 1)
            self.n_nodes = (2 ** self.n_levels) - 1
                                                ^
    ------------------------------------------------------------
      File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
    [ 1/53] Cythonizing sklearn/__check_build/_check_build.pyx
    [ 2/53] Cythonizing sklearn/_isotonic.pyx
    [ 3/53] Cythonizing sklearn/cluster/_dbscan_inner.pyx
    [ 4/53] Cythonizing sklearn/cluster/_hierarchical_fast.pyx
    [ 5/53] Cythonizing sklearn/cluster/_k_means_elkan.pyx
    [ 6/53] Cythonizing sklearn/cluster/_k_means_fast.pyx
    [ 7/53] Cythonizing sklearn/cluster/_k_means_lloyd.pyx
    [ 8/53] Cythonizing sklearn/datasets/_svmlight_format_fast.pyx
    [ 9/53] Cythonizing sklearn/decomposition/_cdnmf_fast.pyx
    [10/53] Cythonizing sklearn/decomposition/_online_lda_fast.pyx
    
@ImadSaddik
Copy link

Hi @gaohongwei. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants