"segmentation fault  python3" error when trying to import scikit-learn

### Describe the bug

When I try to import scikit-learn, I get a segmentation error.  All the other libraries I try to use work fine.

### Steps/Code to Reproduce

First I installed it using `pip3 install scikit-learn`, then I tried `pip3 install sklearn`. Then I removed scikit-learn by typing `pip3 uninstall scikit-learn` and re-installed it with the command `pip3 install -U scikit-learn`. It still doesn't work.

### Expected Results

The result I expected was that I could import the library with no problems

### Actual Results

This is wat I get:
```
>>> import sklearn
[1]    6442 segmentation fault  python3`
```

In addition there is a pop-up that says: "Python quit unexpectedly." 
The report:

```
Process:               Python [6516]
Path:                  /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.9.0 (3.9.0)
Code Type:             X86-64 (Native)
Parent Process:        zsh [6419]
Responsible:           Python [6516]
User ID:               501

Date/Time:             2022-07-04 20:45:17.706 +0200
OS Version:            Mac OS X 10.12.6 (16G2136)
Report Version:        12
Anonymous UUID:        93F73F8B-BF71-B52D-DDB7-DAB809F701A5

Sleep/Wake UUID:       21CB12E0-87EC-4B01-8A09-D2FEFCDE0F51

Time Awake Since Boot: 33000 seconds
Time Since Wake:       830 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [0]

VM Regions Near 0:
--> 
    __TEXT                 000000010becf000-000000010bed0000 [    4K] r-x/rwx SM=COW  /Library/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
```

... 

```
External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 17978
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=309.7M resident=0K(0%) swapped_out_or_unallocated=309.7M(100%)
Writable regions: Total=161.4M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=161.4M(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Kernel Alloc Once                    8K        2 
MALLOC                            44.1M       59 
MALLOC guard page                   16K        4 
MALLOC_LARGE (reserved)            384K        2         reserved VM address space (unallocated)
STACK GUARD                         12K        4 
Stack                             17.0M        4 
VM_ALLOCATE                       64.0M        3 
VM_ALLOCATE (reserved)            32.0M        2         reserved VM address space (unallocated)
__DATA                             9.9M      196 
__LINKEDIT                       134.8M      216 
__TEXT                           175.5M      181 
__UNICODE                          556K        2 
shared memory                       12K        4 
===========                     =======  ======= 
TOTAL                            478.2M      666 
TOTAL, minus reserved VM space   445.9M      666 

Model: MacBookAir3,2, BootROM 110.0.0.0.0, 2 processors, Intel Core 2 Duo, 2,13 GHz, 4 GB, SMC 1.66f61
Graphics: NVIDIA GeForce 320M, NVIDIA GeForce 320M, PCI, 256 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353237334348302D5946382020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1067 MHz, 0x80CE, 0x4D34373142353237334348302D5946382020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD1), Broadcom BCM43xx 1.0 (5.106.98.102.30)
Bluetooth: Version 5.0.5f7, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD TS256C, 251 GB
USB Device: USB 2.0 Bus
USB Device: Built-in iSight
USB Device: USB 2.0 Bus
USB Device: Card Reader
USB Device: USB Bus
USB Device: BRCM2070 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: USB Bus
Thunderbolt Bus: 
```

### Versions

```shell
- OS: MacOs Sierra 10.12.6
- python3 version: 3.9.0
- pip3 version: 22.1.1
- scikit-learn version: 1.1.1
- numpy version: 1.23.0
- scipy version: 1.8.1
```

COMMENT:
Having the debugger blocked by System Integrity Protection is unfortunate. For debugging, can you try to `import numpy` and `import scipy` to see if they work?

How did you install Python?

Another option is to install Python with [anaconda](https://www.anaconda.com/products/distribution) and install scikit-learn with conda.

Labels: Bug, Build / CI