ImportError: cannot import name 'SplineTransformer' from 'sklearn.preprocessing' ,which only appears on Linux system, and it can be imported on Windows.

### Describe the bug

Hello, I try to use `SplineTransformer`  to make a pipeline, but I fail to import it as I code like `from sklearn.preprocessing import SplineTransformer` , but importing other modules is okay in Linux, as you can see the following example:
![1](https://user-images.githubusercontent.com/91657801/196497423-3bc52dbc-8c00-457a-9c04-a52c5376361a.PNG)
I do the same thing on Windows, all modules can be imported, as shown in the picture below:
![3](https://user-images.githubusercontent.com/91657801/196498765-a4365c4e-cbaa-4899-bff8-1bf64f5e2147.PNG)

### Steps/Code to Reproduce

```
from sklearn.preprocessing import SplineTransformer
```

### Expected Results

Import the module `sklearn.preprocessing SplineTransformer` correctly.

### Actual Results

ImportError                               Traceback (most recent call last)
Cell In [4], line 1
----> 1 from sklearn.preprocessing import SplineTransformer

ImportError: cannot import name 'SplineTransformer' from 'sklearn.preprocessing' (/home/zy/miniconda3/envs/p38/lib/python3.8/site-packages/sklearn/preprocessing/__init__.py)

### Versions

```shell
System:
    python: 3.8.13 (default, Mar 28 2022, 11:38:47)  [GCC 7.5.0]
executable: /home/zy/miniconda3/envs/p38/bin/python
   machine: Linux-5.4.0-128-generic-x86_64-with-glibc2.17

Python dependencies:
          pip: 22.2.2
   setuptools: 63.4.1
      sklearn: 0.24.2
        numpy: 1.23.3
        scipy: 1.9.2
       Cython: 0.29.32
       pandas: 1.5.0
   matplotlib: 3.6.1
       joblib: 1.2.0
threadpoolctl: 3.1.0

Built with OpenMP: True

System:
    python: 3.9.7 (default, Sep 16 2021, 16:59:28) [MSC v.1916 64 bit (AMD64)]
executable: C:\Users\DELL\anaconda3\python.exe
   machine: Windows-10-10.0.19044-SP0

Python dependencies:
      sklearn: 1.1.1
          pip: 21.2.4
   setuptools: 58.0.4
        numpy: 1.20.3
        scipy: 1.9.0rc1
       Cython: 0.29.24
       pandas: 1.3.4
   matplotlib: 3.4.3
       joblib: 1.1.0
threadpoolctl: 3.1.0

Built with OpenMP: True

threadpoolctl info:
       user_api: openmp
   internal_api: openmp
         prefix: vcomp
       filepath: C:\Users\DELL\anaconda3\Lib\site-packages\sklearn\.libs\vcomp140.dll
        version: None
    num_threads: 4

       user_api: blas
   internal_api: mkl
         prefix: mkl_rt
       filepath: C:\Users\DELL\anaconda3\Library\bin\mkl_rt.1.dll
        version: 2021.4-Product
threading_layer: intel
    num_threads: 4

       user_api: blas
   internal_api: openblas
         prefix: libopenblas
       filepath: C:\Users\DELL\AppData\Roaming\Python\Python39\site-packages\scipy-1.9.0rc1-py3.9-win-amd64.egg\scipy\.libs\libopenblas.PZA5WNOTOH6FZLB2KBVKAURAKVTFSNNU.gfortran-win_amd64.dll
        version: 0.3.18
threading_layer: pthreads
   architecture: Haswell
    num_threads: 4
```

COMMENT:
Hi @belzheng 

I see from the sklearn documentation that SplineTransformer was only added in sklearn version 1.0 and it appears that you are running sklearn version 0.24.2 on your Linux system. 

This might be the issue.

Labels: Bug, Needs Triage