AttributeError: module 'sklearn.metrics._dist_metrics' has no attribute 'DistanceMetric32'

### Describe the bug

I am using the pyldavis library which depends on scikit learn, I have been working for months without any problem. Today at night a new error appeared when I tried the library

`import pyLDAvis`

AttributeError: module 'sklearn.metrics._dist_metrics' has no attribute 'DistanceMetric32'.

If I try to import the function directly 

`from sklearn.metrics import _dist_metrics`


 it returns the same error

### Steps/Code to Reproduce

`from sklearn.metrics import _dist_metrics`

### Expected Results

No error is thrown

### Actual Results

File sklearn/metrics/_pairwise_distances_reduction/_base.pyx:1, in init sklearn.metrics._pairwise_distances_reduction._base()

AttributeError: module 'sklearn.metrics._dist_metrics' has no attribute 'DistanceMetric32'

### Versions

```shell
System:
    python: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:35:26) [GCC 10.4.0]
executable: /home/trusted-service-user/cluster-env/env/bin/python
   machine: Linux-4.15.0-1165-azure-x86_64-with-glibc2.27

Python dependencies:
      sklearn: 1.1.3
          pip: 22.3.1
   setuptools: 65.5.1
        numpy: 1.23.4
        scipy: 1.9.3
       Cython: 0.29.32
       pandas: 1.5.1
   matplotlib: 3.6.2
       joblib: 1.2.0
threadpoolctl: 3.1.0

Built with OpenMP: True

threadpoolctl info:
       user_api: blas
   internal_api: mkl
         prefix: libmkl_rt
       filepath: /home/trusted-service-user/cluster-env/env/lib/libmkl_rt.so.2
        version: 2022.1-Product
threading_layer: intel
    num_threads: 8

       user_api: openmp
   internal_api: openmp
         prefix: libomp
       filepath: /home/trusted-service-user/cluster-env/env/lib/libomp.so
        version: None
    num_threads: 16

       user_api: openmp
   internal_api: openmp
         prefix: libgomp
       filepath: /home/trusted-service-user/cluster-env/env/lib/python3.10/site-packages/scikit_learn.libs/libgomp-a34b3233.so.1.0.0
        version: None
    num_threads: 16
```

COMMENT:
I cannot reproduce the issue:

```shell
mamba create --name xxx python=3.10 pyLDAvis
```

```python
❯ python
Python 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyLDAvis
```

```
System:
    python: 3.10.11 | packaged by conda-forge | (main, May 10 2023, 18:58:44) [GCC 11.3.0]
executable: /home/glemaitre/miniconda3/envs/xxx/bin/python
   machine: Linux-5.19.0-42-generic-x86_64-with-glibc2.35

Python dependencies:
      sklearn: 1.2.2
          pip: 23.1.2
   setuptools: 67.7.2
        numpy: 1.24.3
        scipy: 1.10.1
       Cython: None
       pandas: 2.0.2
   matplotlib: None
       joblib: 1.2.0
threadpoolctl: 3.1.0

Built with OpenMP: True

threadpoolctl info:
       user_api: blas
   internal_api: openblas
         prefix: libopenblas
       filepath: /home/glemaitre/miniconda3/envs/xxx/lib/libopenblasp-r0.3.23.so
        version: 0.3.23
threading_layer: pthreads
   architecture: Haswell
    num_threads: 8

       user_api: openmp
   internal_api: openmp
         prefix: libgomp
       filepath: /home/glemaitre/miniconda3/envs/xxx/lib/libgomp.so.1.0.0
        version: None
    num_threads: 8
```

I also downgraded to `scikit-learn==1.1.3` but I don't get any error as well.
I would suggest to reinstall your environment because there is something fishy in it.

Labels: Bug, Needs Triage