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
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]