I have the same issue with python 3.12.6 using pyinstaller 5.13.2. I using an older version of pyinstaller because of the way the pkging structure changed after 5.13.2
The issue was: The numpy.libs dll are missing in the executable pkg created by pyinstaller. The dlls are under: \Lib\site-packages\numpy.libs
The Fix: You can either manually copy the numpy.libs folder into the pkg after pyinstaller or modify your spec file to include those files
n_f=[]
for files in glob(sys.prefix + r'\Lib\site-packages\numpy.libs\*.*'):
f2 = files,"numpy.libs"
n_f.append(f2)
all_files.extend(n_f)
and then set datas = all_files in the Analysis
a = Analysis(['examples.py'],pathex=['/Developer/PItests/minimal'],binaries=None,datas=all_files,hiddenimports=[],hookspath=None,runtime_hooks=None,excludes=None)