KBinsDiscretizer crashes when strategy='kmeans'

### Describe the bug

Kernel is Jupyter notebook crashes when `strategy='kmeans'` is used with `KBinsDiscretizer`.

Versions:
3.8.12 (default, Oct 12 2021, 06:23:56) 
[Clang 10.0.0 ]
Python 3.8.12
numpy:  1.19.2
sklearn:  1.0.1

### Steps/Code to Reproduce

```py
# library
import numpy as np
from sklearn import preprocessing

# Feature array
x = np.array([
    [1, 2, 3, 4],
    [-1, -2, -3, -4],
    [4, 3, 2, 1],
    [0, 1, 0, 1]
])

# Fit and transform
est = preprocessing.KBinsDiscretizer(n_bins=[2, 2, 2, 2], encode='ordinal', strategy='kmeans')
est.fit_transform(x)

```

### Expected Results

No error

### Actual Results

Kernel crashes

### Versions

```shell
System:
    python: 3.8.12 (default, Oct 12 2021, 06:23:56)  [Clang 10.0.0 ]
executable: /opt/anaconda3/bin/python
   machine: macOS-10.16-x86_64-i386-64bit

Python dependencies:
          pip: 21.2.4
   setuptools: 58.0.4
      sklearn: 1.0.1
        numpy: 1.19.2
        scipy: 1.6.2
       Cython: 0.29.24
       pandas: 1.4.2
   matplotlib: 3.5.0
       joblib: 1.1.0
threadpoolctl: 2.2.0

Built with OpenMP: True
```

COMMENT:
@lesteve Thank you for looking into it. Looked into #23574 and tried updating conda, scikit-learn, jupyter notebook, conda navigator. It is working now.

```
import sklearn; sklearn.show_versions()
```

```
System:
    python: 3.8.13 (default, Mar 28 2022, 06:16:26)  [Clang 12.0.0 ]
executable: /opt/anaconda3/bin/python
   machine: macOS-10.16-x86_64-i386-64bit

Python dependencies:
      sklearn: 1.1.1
          pip: 20.3.3
   setuptools: 61.2.0
        numpy: 1.21.5
        scipy: 1.8.1
       Cython: 0.29.30
       pandas: 1.4.3
   matplotlib: None
       joblib: 1.1.0
threadpoolctl: 2.2.0

Built with OpenMP: True

threadpoolctl info:
       filepath: /opt/anaconda3/lib/libopenblasp-r0.3.20.dylib
         prefix: libopenblas
       user_api: blas
   internal_api: openblas
        version: 0.3.20
    num_threads: 12
threading_layer: openmp
   architecture: Haswell

       filepath: /opt/anaconda3/lib/libomp.dylib
         prefix: libomp
       user_api: openmp
   internal_api: openmp
        version: None
    num_threads: 12
```


```
conda list
```

```

# packages in environment at /opt/anaconda3:
#
# Name                    Version                   Build  Channel
_anaconda_depends         2021.11                  py38_0  
_ipyw_jlab_nb_ext_conf    0.1.0                    py38_0  
_py-xgboost-mutex         2.0                       cpu_0  
absl-py                   0.10.0                   pypi_0    pypi
alabaster                 0.7.12             pyhd3eb1b0_0  
ampl-mp                   3.1.0             h2beb688_1006    conda-forge
anaconda                  custom                   py38_1  
anaconda-client           1.10.0           py38hecd8cb5_0  
anaconda-navigator        2.2.0            py38hecd8cb5_0  
anaconda-project          0.10.2             pyhd3eb1b0_0  
anyio                     3.5.0            py38hecd8cb5_0  
appdirs                   1.4.4              pyhd3eb1b0_0  
applaunchservices         0.2.1              pyhd3eb1b0_0  
appnope                   0.1.2           py38hecd8cb5_1001  
appscript                 1.1.2            py38h9ed2024_0  
arff                      0.9                      pypi_0    pypi
argh                      0.26.2                   py38_0  
argon2-cffi               21.3.0             pyhd3eb1b0_0  
argon2-cffi-bindings      21.2.0           py38hca72f7f_0  
arrow                     1.2.2              pyhd3eb1b0_0  
asn1crypto                1.5.1            py38hecd8cb5_0  
astroid                   2.6.6            py38hecd8cb5_0  
astropy                   5.1              py38h67323c0_0  
asttokens                 2.0.5              pyhd3eb1b0_0  
astunparse                1.6.3                    pypi_0    pypi
async_generator           1.10               pyhd3eb1b0_0  
atomicwrites              1.4.0                      py_0  
attrs                     21.4.0             pyhd3eb1b0_0  
audioread                 2.1.9                    pypi_0    pypi
autopep8                  1.6.0              pyhd3eb1b0_0  
babel                     2.9.1              pyhd3eb1b0_0  
backcall                  0.2.0              pyhd3eb1b0_0  
backports                 1.1                pyhd3eb1b0_0  
backports.functools_lru_cache 1.6.4              pyhd3eb1b0_0  
backports.shutil_get_terminal_size 1.0.0              pyhd3eb1b0_3  
backports.tempfile        1.0                pyhd3eb1b0_1  
backports.weakref         1.0.post1                  py_1  
beautifulsoup4            4.11.1           py38hecd8cb5_0  
binaryornot               0.4.4              pyhd3eb1b0_1  
bitarray                  2.5.1            py38hca72f7f_0  
bkcharts                  0.2              py38hecd8cb5_1  
black                     19.10b0                    py_0  
blas                      2.115                  openblas    conda-forge
blas-devel                3.9.0           15_osx64_openblas    conda-forge
bleach                    4.1.0              pyhd3eb1b0_0  
blosc                     1.21.0               h2842e9f_0  
bokeh                     2.4.3            py38hecd8cb5_0  
boto                      2.49.0                   py38_0  
bottleneck                1.3.5            py38h67323c0_0  
brotli                    1.0.9                hb1e8313_2  
brotlipy                  0.7.0           py38h9ed2024_1003  
brunsli                   0.1                  h23ab428_0  
bzip2                     1.0.8                h1de35cc_0  
c-ares                    1.18.1               hca72f7f_0  
ca-certificates           2022.07.19           hecd8cb5_0  
cached-property           1.5.2                      py_0  
cachetools                4.1.1                    pypi_0    pypi
certifi                   2022.6.15        py38hecd8cb5_0  
cffi                      1.15.0           py38hc55c11b_1  
cfitsio                   3.470                hbd21bf8_7  
chardet                   4.0.0           py38hecd8cb5_1003  
charls                    2.2.0                h23ab428_0  
charset-normalizer        2.0.4              pyhd3eb1b0_0  
cheroot                   8.5.2                    pypi_0    pypi
click                     8.0.4            py38hecd8cb5_0  
click-plugins             1.1.1                    pypi_0    pypi
cligj                     0.7.1                    pypi_0    pypi
cloudpickle               2.0.0              pyhd3eb1b0_0  
clyent                    1.2.2                    py38_1  
colorama                  0.4.5            py38hecd8cb5_0  
conda                     4.13.0           py38hecd8cb5_0  
conda-build               3.21.5           py38hecd8cb5_0  
conda-content-trust       0.1.3            py38hecd8cb5_0  
conda-env                 2.6.0                         1  
conda-pack                0.6.0              pyhd3eb1b0_0  
conda-package-handling    1.8.1            py38hca72f7f_0  
conda-repo-cli            1.0.4              pyhd3eb1b0_0  
conda-token               0.3.0              pyhd3eb1b0_0  
conda-verify              3.4.2                      py_1  
contextlib2               0.6.0.post1        pyhd3eb1b0_0  
cookiecutter              1.7.3              pyhd3eb1b0_0  
cryptography              37.0.1           py38hf6deb26_0  
curl                      7.82.0               hca72f7f_0  
cycler                    0.11.0             pyhd3eb1b0_0  
cyipopt                   0.1.9           py38h3b54f70_1000    conda-forge
cython                    0.29.30          py38he9d5cce_0  
cytoolz                   0.11.0           py38haf1e3a3_0  
daal4py                   2021.5.0         py38h39ff551_0    conda-forge
dal                       2021.5.0           hecd8cb5_782  
dask                      2022.7.0         py38hecd8cb5_0  
dask-core                 2022.7.0         py38hecd8cb5_0  
dataclasses               0.6                      pypi_0    pypi
dbus                      1.13.18              h18a8e69_0  
debugpy                   1.5.1            py38he9d5cce_0  
decorator                 5.1.1              pyhd3eb1b0_0  
defusedxml                0.7.1              pyhd3eb1b0_0  
diff-match-patch          20200713           pyhd3eb1b0_0  
dill                      0.3.3                    pypi_0    pypi
distributed               2022.7.0         py38hecd8cb5_0  
distro                    1.6.0                    pypi_0    pypi
dm-tree                   0.1.5                    pypi_0    pypi
docutils                  0.18.1           py38hecd8cb5_3  
emoji                     1.2.0                    pypi_0    pypi
entrypoints               0.4              py38hecd8cb5_0  
enum34                    1.1.10                   pypi_0    pypi
et_xmlfile                1.1.0            py38hecd8cb5_0  
executing                 0.8.3              pyhd3eb1b0_0  
expat                     2.4.4                he9d5cce_0  
ez-setup                  0.9                      pypi_0    pypi
fastcache                 1.1.0            py38h1de35cc_0  
ffmpeg                    4.2.2                h97e5cf8_0  
filelock                  3.6.0              pyhd3eb1b0_0  
fiona                     1.8.18                   pypi_0    pypi
flake8                    3.9.2              pyhd8ed1ab_0    conda-forge
flask                     1.1.2              pyhd3eb1b0_0  
flatbuffers               1.12                     pypi_0    pypi
fonttools                 4.25.0             pyhd3eb1b0_0  
fpdf                      1.7.2                    pypi_0    pypi
freetype                  2.11.0               hd8bbffd_0  
fsspec                    2022.3.0         py38hecd8cb5_0  
future                    0.18.2                   py38_1  
gast                      0.3.3                    pypi_0    pypi
geopandas                 0.9.0                    pypi_0    pypi
get_terminal_size         1.0.0                h7520d66_0  
gettext                   0.21.0               h7535e17_0  
gevent                    21.8.0           py38h9ed2024_1  
giflib                    5.2.1                haf1e3a3_0  
gin-config                0.4.0                    pypi_0    pypi
glib                      2.69.1               h8346a28_1  
glob2                     0.7                pyhd3eb1b0_0  
gmp                       6.2.1                he9d5cce_3  
gmpy2                     2.1.2            py38hd5de756_0  
gnutls                    3.6.15               hed9c0bf_0  
google-api-core           1.25.0                   pypi_0    pypi
google-api-python-client  1.12.8                   pypi_0    pypi
google-auth               1.23.0                   pypi_0    pypi
google-auth-httplib2      0.0.4                    pypi_0    pypi
google-auth-oauthlib      0.4.2                    pypi_0    pypi
google-cloud-bigquery     2.6.2                    pypi_0    pypi
google-cloud-core         1.5.0                    pypi_0    pypi
google-crc32c             1.1.1                    pypi_0    pypi
google-pasta              0.2.0                    pypi_0    pypi
google-resumable-media    1.2.0                    pypi_0    pypi
googleapis-common-protos  1.52.0                   pypi_0    pypi
greenlet                  1.1.1            py38h23ab428_0  
grpcio                    1.32.0                   pypi_0    pypi
h5py                      3.7.0           nompi_py38ha2d691f_100    conda-forge
hdf5                      1.12.1               h2b2ad87_2  
heapdict                  1.0.1              pyhd3eb1b0_0  
html5lib                  1.1                pyhd3eb1b0_0  
httplib2                  0.18.1                   pypi_0    pypi
icu                       58.2                 h0a44026_3  
idna                      3.3                pyhd3eb1b0_0  
imagecodecs               2021.8.26        py38ha952a84_0  
imageio                   2.19.3           py38hecd8cb5_0  
imageio-ffmpeg            0.4.3                    pypi_0    pypi
imagesize                 1.4.1            py38hecd8cb5_0  
imbalanced-learn          0.8.0                    pypi_0    pypi
imblearn                  0.0                      pypi_0    pypi
importlib-metadata        4.11.3           py38hecd8cb5_0  
importlib-resources       5.0.0                    pypi_0    pypi
importlib_metadata        4.11.3               hd3eb1b0_0  
importlib_resources       5.2.0              pyhd3eb1b0_1  
inflection                0.5.1            py38hecd8cb5_0  
iniconfig                 1.1.1              pyhd3eb1b0_0  
intel-openmp              2022.0.0          hecd8cb5_3615  
intervaltree              3.1.0              pyhd3eb1b0_0  
ipopt                     3.14.9               h7276238_0    conda-forge
ipykernel                 6.9.1            py38hecd8cb5_0  
ipympl                    0.7.0              pyhd3eb1b0_0  
ipython                   8.4.0            py38hecd8cb5_0  
ipython_genutils          0.2.0              pyhd3eb1b0_1  
ipywidgets                7.6.5              pyhd3eb1b0_1  
isort                     5.9.3              pyhd3eb1b0_0  
itsdangerous              2.0.1              pyhd3eb1b0_0  
jaraco-functools          3.3.0                    pypi_0    pypi
jbig                      2.1                  h4d881f8_0  
jdcal                     1.4.1              pyhd3eb1b0_0  
jedi                      0.18.1           py38hecd8cb5_1  
jinja2                    2.11.3             pyhd8ed1ab_2    conda-forge
jinja2-time               0.2.0              pyhd3eb1b0_3  
joblib                    1.1.0              pyhd3eb1b0_0  
jpeg                      9e                   hca72f7f_0  
json5                     0.9.6              pyhd3eb1b0_0  
jsonschema                4.4.0            py38hecd8cb5_0  
jupyter                   1.0.0                    py38_7  
jupyter_client            6.1.12             pyhd3eb1b0_0  
jupyter_console           6.4.0              pyhd3eb1b0_0  
jupyter_core              4.10.0           py38hecd8cb5_0  
jupyter_server            1.18.1           py38hecd8cb5_0  
jupyterlab                3.4.4            py38hecd8cb5_0  
jupyterlab_pygments       0.1.2                      py_0  
jupyterlab_server         2.10.3             pyhd3eb1b0_1  
jupyterlab_widgets        1.0.0              pyhd3eb1b0_1  
jxrlib                    1.1                  haf1e3a3_2  
kaggle                    1.5.10                   pypi_0    pypi
keras                     2.4.3                    pypi_0    pypi
keras-applications        1.0.8                    pypi_0    pypi
keras-preprocessing       1.1.2                    pypi_0    pypi
keyring                   23.4.0           py38hecd8cb5_0  
kiwisolver                1.4.2            py38he9d5cce_0  
krb5                      1.19.2               hcd88c3b_0  
lame                      3.100                h1de35cc_0  
lazy-loader               0.1rc2                   pypi_0    pypi
lazy-object-proxy         1.6.0            py38h9ed2024_0  
lcms2                     2.12                 hf1fd2bf_0  
lerc                      3.0                  he9d5cce_0  
libaec                    1.0.4                hb1e8313_1  
libarchive                3.4.2                haa3ed63_0  
libblas                   3.9.0           15_osx64_openblas    conda-forge
libcblas                  3.9.0           15_osx64_openblas    conda-forge
libcurl                   7.82.0               h6dfd666_0  
libcxx                    14.0.6               hce7ea42_0    conda-forge
libdeflate                1.8                  h9ed2024_5  
libedit                   3.1.20210910         hca72f7f_0  
libev                     4.33                 h9ed2024_1  
libffi                    3.3                  hb1e8313_2  
libgfortran               5.0.0           11_2_0_h246ff09_26  
libgfortran5              11.2.0              h246ff09_26  
libiconv                  1.16                 hca72f7f_2  
libidn2                   2.3.2                h9ed2024_0  
liblapack                 3.9.0           15_osx64_openblas    conda-forge
liblapacke                3.9.0           15_osx64_openblas    conda-forge
liblief                   0.11.5               he9d5cce_1  
libllvm11                 11.1.0               h46f1229_1  
libnghttp2                1.46.0               ha29bfda_0  
libopenblas               0.3.20          openmp_hb3cd9ec_0    conda-forge
libopus                   1.3.1                h1de35cc_0  
libpng                    1.6.37               ha441bb4_0  
librosa                   0.8.1                    pypi_0    pypi
libsodium                 1.0.18               h1de35cc_0  
libspatialindex           1.9.3                h23ab428_0  
libssh2                   1.10.0               h0a4fc7d_0  
libtasn1                  4.16.0               h9ed2024_0  
libtiff                   4.2.0                h87d7836_0  
libunistring              0.9.10               h9ed2024_0  
libuv                     1.40.0               haf1e3a3_0  
libvpx                    1.7.0                h378b8a2_0  
libwebp                   1.2.0                hacca55c_0  
libwebp-base              1.2.0                h9ed2024_0  
libxgboost                1.3.3                h23ab428_0  
libxml2                   2.9.14               hbf8cd5e_0  
libxslt                   1.1.35               h5b33f42_0  
libzlib                   1.2.12               hfe4f2af_2    conda-forge
libzopfli                 1.0.3                hb1e8313_0  
littleutils               0.2.2                    pypi_0    pypi
llvm-openmp               14.0.4               ha654fa7_0    conda-forge
llvmlite                  0.38.0           py38h8346a28_0  
locket                    1.0.0            py38hecd8cb5_0  
lxml                      4.9.1            py38h65b224f_0  
lz4                       3.1.3            py38h9ed2024_0  
lz4-c                     1.9.3                h23ab428_1  
lzo                       2.10                 haf1e3a3_2  
markdown                  3.3.3                    pypi_0    pypi
markupsafe                2.0.1            py38h9ed2024_0  
matplotlib                3.5.1            py38hecd8cb5_1  
matplotlib-base           3.5.1            py38hfb0c5b7_1  
matplotlib-inline         0.1.2              pyhd3eb1b0_2  
mccabe                    0.6.1                    py38_1  
metis                     5.1.0                h0a44026_4  
mistune                   0.8.4           py38h1de35cc_1001  
mkl                       2022.1.0           h860c996_928    conda-forge
mkl-service               2.4.0            py38h9483e8e_0    conda-forge
mkl_fft                   1.3.1            py38h2bb6a01_3    conda-forge
mkl_random                1.2.2            py38h87afa4d_1    conda-forge
mlxtend                   0.18.0                   pypi_0    pypi
mock                      4.0.3              pyhd3eb1b0_0  
more-itertools            8.12.0             pyhd3eb1b0_0  
moviepy                   1.0.3                    pypi_0    pypi
mpc                       1.1.0                h6ef4df4_1  
mpfr                      4.0.2                h9066e36_1  
mpi                       1.0                       mpich  
mpich                     4.0.2              hd33e60e_100    conda-forge
mpmath                    1.2.1            py38hecd8cb5_0  
msgpack-python            1.0.3            py38haf03e11_0  
multipledispatch          0.6.0                    py38_0  
mumps-include             5.2.1               h694c41f_11    conda-forge
mumps-seq                 5.2.1               hea8e22a_11    conda-forge
munch                     2.5.0                    pypi_0    pypi
munkres                   1.1.4                      py_0  
mypy_extensions           0.4.3            py38hecd8cb5_1  
mysql-connector-python    8.0.28                   pypi_0    pypi
navigator-updater         0.2.1                    py38_0  
nbclassic                 0.3.5              pyhd3eb1b0_0  
nbclient                  0.5.13           py38hecd8cb5_0  
nbconvert                 6.4.4            py38hecd8cb5_0  
nbformat                  5.3.0            py38hecd8cb5_0  
ncurses                   6.3                  hca72f7f_3  
nest-asyncio              1.5.5            py38hecd8cb5_0  
nettle                    3.7.3                h230ac6f_1  
networkx                  2.8.4            py38hecd8cb5_0  
nltk                      3.7                pyhd3eb1b0_0  
nose                      1.3.7           pyhd3eb1b0_1008  
notebook                  6.4.11           py38hecd8cb5_0  
numba                     0.55.1           py38hae1ba45_0  
numexpr                   2.8.3            py38h0f1bd0b_0  
numpy                     1.21.3                   pypi_0    pypi
numpy-base                1.21.5           py38hbda7086_3  
numpydoc                  1.4.0            py38hecd8cb5_0  
oauth2client              4.1.3                    pypi_0    pypi
oauthlib                  3.1.0                    pypi_0    pypi
object-detection          0.1                      pypi_0    pypi
olefile                   0.46               pyhd3eb1b0_0  
onnx                      1.10.1                   pypi_0    pypi
onnxconverter-common      1.8.1                    pypi_0    pypi
onnxruntime               1.9.0                    pypi_0    pypi
openblas                  0.3.20          openmp_h5ad848b_0    conda-forge
opencv-python             4.4.0.46                 pypi_0    pypi
opencv-python-headless    4.5.1.48                 pypi_0    pypi
openh264                  2.1.1                h8346a28_0  
openjpeg                  2.4.0                h66ea3da_0  
openpyxl                  3.0.10           py38hca72f7f_0  
openssl                   1.1.1q               hca72f7f_0  
opt-einsum                3.3.0                    pypi_0    pypi
oscrypto                  1.2.1                    pypi_0    pypi
outdated                  0.2.1                    pypi_0    pypi
packaging                 21.3               pyhd3eb1b0_0  
pandas                    1.3.4                    pypi_0    pypi
pandas-flavor             0.3.0                    pypi_0    pypi
pandocfilters             1.5.0              pyhd3eb1b0_0  
parso                     0.8.3              pyhd3eb1b0_0  
partd                     1.2.0              pyhd3eb1b0_1  
path                      16.2.0             pyhd3eb1b0_0  
path.py                   12.5.0               hd3eb1b0_0  
pathlib2                  2.3.6            py38hecd8cb5_2  
pathspec                  0.7.0                      py_0  
patsy                     0.5.2            py38hecd8cb5_1  
pcre                      8.45                 h23ab428_0  
pdftotext                 2.2.2                    pypi_0    pypi
pep8                      1.7.1            py38hecd8cb5_1  
pexpect                   4.8.0              pyhd3eb1b0_3  
pickleshare               0.7.5           pyhd3eb1b0_1003  
pillow                    9.2.0            py38hde71d04_1  
pingouin                  0.5.1                    pypi_0    pypi
pip                       20.3.3                   pypi_0    pypi
pkginfo                   1.8.2              pyhd3eb1b0_0  
plaidml-keras             0.7.0                    pypi_0    pypi
plotly                    4.14.3                   pypi_0    pypi
pluggy                    1.0.0            py38hecd8cb5_1  
ply                       3.11                     py38_0  
pooch                     1.4.0                    pypi_0    pypi
portaudio                 19.6.0               h647c56a_4  
poyo                      0.5.0              pyhd3eb1b0_0  
proglog                   0.1.9                    pypi_0    pypi
prometheus_client         0.13.1             pyhd3eb1b0_0  
promise                   2.3                      pypi_0    pypi
prompt-toolkit            3.0.20             pyhd3eb1b0_0  
prompt_toolkit            3.0.20               hd3eb1b0_0  
proto-plus                1.13.0                   pypi_0    pypi
protobuf                  3.14.0                   pypi_0    pypi
protos                    0.1.0                    pypi_0    pypi
psutil                    5.9.0            py38hca72f7f_0  
ptyprocess                0.7.0              pyhd3eb1b0_2  
pure_eval                 0.2.2              pyhd3eb1b0_0  
py                        1.11.0             pyhd3eb1b0_0  
py-cpuinfo                7.0.0                    pypi_0    pypi
py-lief                   0.11.5           py38he9d5cce_1  
py-xgboost                1.3.3            py38hecd8cb5_0  
pyasn1                    0.4.8                    pypi_0    pypi
pyasn1-modules            0.2.8                    pypi_0    pypi
pyaudio                   0.2.11           py38h1de35cc_2  
pycocotools               2.0.2                    pypi_0    pypi
pycodestyle               2.7.0              pyhd3eb1b0_0  
pycosat                   0.6.3            py38h1de35cc_1  
pycparser                 2.21               pyhd3eb1b0_0  
pycryptodomex             3.14.1                   pypi_0    pypi
pycurl                    7.45.1           py38h0a4fc7d_0  
pydocstyle                6.1.1              pyhd3eb1b0_0  
pyerfa                    2.0.0            py38h9ed2024_0  
pyflakes                  2.3.1              pyhd3eb1b0_0  
pygments                  2.11.2             pyhd3eb1b0_0  
pyjwt                     2.4.0            py38hecd8cb5_0  
pylint                    2.9.6            py38hecd8cb5_1  
pyls-spyder               0.4.0              pyhd3eb1b0_0  
pymysql                   1.0.2                    pypi_0    pypi
pyodbc                    4.0.32           py38he9d5cce_1  
pyopenssl                 22.0.0             pyhd3eb1b0_0  
pyparsing                 3.0.4              pyhd3eb1b0_0  
pypdf2                    1.26.0                   pypi_0    pypi
pypng                     0.0.21                   pypi_0    pypi
pyproj                    3.0.1                    pypi_0    pypi
pyqrcode                  1.2.1                    pypi_0    pypi
pyqt                      5.9.2            py38h655552a_2  
pyqt5                     5.15.6                   pypi_0    pypi
pyqt5-qt5                 5.15.2                   pypi_0    pypi
pyqt5-sip                 12.9.0                   pypi_0    pypi
pyqtwebengine             5.15.5                   pypi_0    pypi
pyqtwebengine-qt5         5.15.2                   pypi_0    pypi
pyrsistent                0.18.0           py38hca72f7f_0  
pysocks                   1.7.1                    py38_1  
pyspectra                 0.0.1.2                  pypi_0    pypi
pystan                    2.19.1.1                 pypi_0    pypi
pytables                  3.7.0            py38h5215406_0    conda-forge
pytest                    7.1.2            py38hecd8cb5_0  
python                    3.8.13               hdfd78df_0  
python-dateutil           2.8.2              pyhd3eb1b0_0  
python-fastjsonschema     2.15.1             pyhd3eb1b0_0  
python-graphviz           0.16                     pypi_0    pypi
python-libarchive-c       2.9                pyhd3eb1b0_1  
python-lsp-black          1.0.0              pyhd3eb1b0_0  
python-lsp-jsonrpc        1.0.0              pyhd3eb1b0_0  
python-lsp-server         1.2.4              pyhd3eb1b0_0  
python-slugify            4.0.1                    pypi_0    pypi
python.app                2                       py38_10  
python_abi                3.8                      2_cp38    conda-forge
pytz                      2022.1           py38hecd8cb5_0  
pywavelets                1.3.0            py38hca72f7f_0  
pyyaml                    6.0              py38hca72f7f_1  
pyzmq                     23.2.0           py38he9d5cce_0  
qdarkstyle                3.0.2              pyhd3eb1b0_0  
qstylizer                 0.1.10             pyhd3eb1b0_0  
qt                        5.9.7                h468cd18_1  
qtawesome                 1.0.3              pyhd3eb1b0_0  
qtconsole                 5.3.1            py38hecd8cb5_0  
qtpy                      2.0.1              pyhd3eb1b0_0  
rarfile                   4.0                      pypi_0    pypi
readline                  8.1.2                hca72f7f_1  
regex                     2022.7.9         py38hca72f7f_0  
requests                  2.28.1           py38hecd8cb5_0  
requests-oauthlib         1.3.0                    pypi_0    pypi
resampy                   0.2.2                    pypi_0    pypi
retrying                  1.3.3                    pypi_0    pypi
ripgrep                   12.1.1                        0  
rope                      0.22.0             pyhd3eb1b0_0  
rsa                       4.6                      pypi_0    pypi
rtree                     0.9.7            py38hecd8cb5_1  
ruamel_yaml               0.15.100         py38h9ed2024_0  
scikit-image              0.19.2           py38hae1ba45_0  
scikit-learn              1.0                      pypi_0    pypi
scikit-learn-intelex      2021.5.0         py38hecd8cb5_0  
scipy                     1.7.1                    pypi_0    pypi
scotch                    6.0.9                h3da7401_2    conda-forge
seaborn                   0.11.2             pyhd3eb1b0_0  
selenium                  3.141.0                  pypi_0    pypi
selenium-tools            0.0.2                    pypi_0    pypi
send2trash                1.8.0              pyhd3eb1b0_1  
sentencepiece             0.1.95                   pypi_0    pypi
seqeval                   1.2.2                    pypi_0    pypi
setuptools                61.2.0           py38hecd8cb5_0  
shapely                   1.7.1                    pypi_0    pypi
simplegeneric             0.8.1                    py38_2  
singledispatch            3.7.0           pyhd3eb1b0_1001  
sip                       4.19.8           py38h0a44026_0  
six                       1.16.0             pyhd3eb1b0_1  
skl2onnx                  1.10.0                   pypi_0    pypi
sklearn                   0.0                      pypi_0    pypi
sklearn-pandas            2.2.0                    pypi_0    pypi
sklearn2pmml              0.76.0                   pypi_0    pypi
smop                      0.41                     pypi_0    pypi
snappy                    1.1.9                he9d5cce_0  
sniffio                   1.2.0            py38hecd8cb5_1  
snowballstemmer           2.2.0              pyhd3eb1b0_0  
snowflake-connector-python 2.7.4                    pypi_0    pypi
snowflake-sqlalchemy      1.3.3                    pypi_0    pypi
sortedcollections         2.1.0              pyhd3eb1b0_0  
sortedcontainers          2.4.0              pyhd3eb1b0_0  
soundfile                 0.10.3.post1             pypi_0    pypi
soupsieve                 2.3.1              pyhd3eb1b0_0  
spc-spectra               0.4.0                    pypi_0    pypi
speechrecognition         3.8.1                    pypi_0    pypi
sphinx                    5.0.2            py38hecd8cb5_0  
sphinxcontrib             1.0                      py38_1  
sphinxcontrib-applehelp   1.0.2              pyhd3eb1b0_0  
sphinxcontrib-devhelp     1.0.2              pyhd3eb1b0_0  
sphinxcontrib-htmlhelp    2.0.0              pyhd3eb1b0_0  
sphinxcontrib-jsmath      1.0.1              pyhd3eb1b0_0  
sphinxcontrib-qthelp      1.0.3              pyhd3eb1b0_0  
sphinxcontrib-serializinghtml 1.1.5              pyhd3eb1b0_0  
sphinxcontrib-websupport  1.2.4                      py_0  
spyder                    5.1.5            py38hecd8cb5_1  
spyder-kernels            2.1.3            py38hecd8cb5_0  
sqlalchemy                1.4.39           py38hca72f7f_0  
sqlite                    3.38.5               h707629a_0  
stack_data                0.2.0              pyhd3eb1b0_0  
statsmodels               0.13.2           py38hca72f7f_0  
sympy                     1.10.1           py38hecd8cb5_0  
tabula-py                 2.3.0                    pypi_0    pypi
tabulate                  0.8.9                    pypi_0    pypi
tbb                       2021.5.0             haf03e11_0  
tbb4py                    2021.5.0         py38haf03e11_0  
tblib                     1.7.0              pyhd3eb1b0_0  
tensorboard               2.4.0                    pypi_0    pypi
tensorboard-plugin-wit    1.7.0                    pypi_0    pypi
tensorflow                2.4.0                    pypi_0    pypi
tensorflow-addons         0.12.0                   pypi_0    pypi
tensorflow-datasets       4.2.0                    pypi_0    pypi
tensorflow-estimator      2.4.0                    pypi_0    pypi
tensorflow-hub            0.11.0                   pypi_0    pypi
tensorflow-metadata       0.26.0                   pypi_0    pypi
tensorflow-model-optimization 0.5.0                    pypi_0    pypi
termcolor                 1.1.0                    pypi_0    pypi
terminado                 0.13.1           py38hecd8cb5_0  
testpath                  0.6.0            py38hecd8cb5_0  
text-unidecode            1.3                pyhd3eb1b0_0  
textdistance              4.2.1              pyhd3eb1b0_0  
tf-models-official        2.4.0                    pypi_0    pypi
tf-slim                   1.1.0                    pypi_0    pypi
threadpoolctl             2.2.0              pyh0d69192_0  
three-merge               0.1.1              pyhd3eb1b0_0  
tifffile                  2021.7.2           pyhd3eb1b0_2  
tinycss                   0.4             pyhd3eb1b0_1002  
tk                        8.6.12               h5d9f67b_0  
toml                      0.10.2             pyhd3eb1b0_0  
tomli                     2.0.1            py38hecd8cb5_0  
toolz                     0.11.2             pyhd3eb1b0_0  
tornado                   6.1              py38h9ed2024_0  
tqdm                      4.64.0           py38hecd8cb5_0  
traitlets                 5.1.1              pyhd3eb1b0_0  
tweedie                   0.0.7                    pypi_0    pypi
typed-ast                 1.4.3            py38h9ed2024_1  
typeguard                 2.10.0                   pypi_0    pypi
typing-extensions         4.1.1                hd3eb1b0_0  
typing_extensions         4.1.1              pyh06a4308_0  
ujson                     5.4.0            py38he9d5cce_0  
unicodecsv                0.14.1                   py38_0  
unidecode                 1.2.0              pyhd3eb1b0_0  
unixodbc                  2.3.9                haf1e3a3_0  
unrar                     0.4                      pypi_0    pypi
uritemplate               3.0.1                    pypi_0    pypi
urllib3                   1.26.9           py38hecd8cb5_0  
watchdog                  2.1.6            py38h999c104_0  
wcwidth                   0.2.5              pyhd3eb1b0_0  
web-py                    0.62                     pypi_0    pypi
webencodings              0.5.1                    py38_1  
websocket-client          0.58.0           py38hecd8cb5_4  
werkzeug                  2.0.3              pyhd3eb1b0_0  
wget                      3.2                      pypi_0    pypi
wheel                     0.36.2                   pypi_0    pypi
whichcraft                0.6.1              pyhd3eb1b0_0  
widgetsnbextension        3.5.2            py38hecd8cb5_0  
wordcloud                 1.8.1                    pypi_0    pypi
wrapt                     1.12.1           py38haf1e3a3_1  
wurlitzer                 3.0.2            py38hecd8cb5_0  
x264                      1!157.20191217       h1de35cc_0  
xarray                    2022.3.0                 pypi_0    pypi
xgboost                   1.4.2                    pypi_0    pypi
xlrd                      2.0.1              pyhd3eb1b0_0  
xlsxwriter                3.0.3              pyhd3eb1b0_0  
xlwings                   0.24.9           py38hecd8cb5_0  
xlwt                      1.3.0                    py38_0  
xmltodict                 0.12.0             pyhd3eb1b0_0  
xz                        5.2.5                hca72f7f_1  
yaml                      0.2.5                haf1e3a3_0  
yapf                      0.31.0             pyhd3eb1b0_0  
zeromq                    4.3.4                h23ab428_0  
zfp                       0.5.5                he9d5cce_6  
zict                      2.1.0            py38hecd8cb5_0  
zipp                      3.8.0            py38hecd8cb5_0  
zlib                      1.2.12               h4dc903c_2  
zope                      1.0                      py38_1  
zope.event                4.5.0                    py38_0  
zope.interface            5.4.0            py38h9ed2024_0  
zstd                      1.4.9                h322a384_0  
```

```
python -m threadpoolctl -i sklearn
```

```

[
  {
    "filepath": "/opt/anaconda3/lib/libopenblasp-r0.3.20.dylib",
    "prefix": "libopenblas",
    "user_api": "blas",
    "internal_api": "openblas",
    "version": "0.3.20",
    "num_threads": 12,
    "threading_layer": "openmp",
    "architecture": "Haswell"
  },
  {
    "filepath": "/opt/anaconda3/lib/libomp.dylib",
    "prefix": "libomp",
    "user_api": "openmp",
    "internal_api": "openmp",
    "version": null,
    "num_threads": 12
  }
]
```

Labels: Bug, Needs Triage