I used pyinstaller to generate an executable for a python script, and when trying to run the executable I get the error ModuleNotFoundError: No module named 'scipy.special.cython_special'
. I'm not sure where this is coming from, or how to fix it. My executable takes in one argument and returns a list. Any help is appreciated!
I had this error after freezing a program that used scipy version 1.5.0 but I changed the version to 1.4.1 (which I had used with an earlier virtual environment) and the error disappeared.
I'm getting the same error, and not exactly sure what causes it or why pyinstaller doesn't find that dependency, but you can fix it by adding 'scipy.special.cython_special' to your pyinstaller myapp.spec file like this:
a = Analysis(['/Users/Name/path/to/mystartupfile.py'],
pathex=['/Users/Name/...'],
binaries=[],
datas=[('data')],
hiddenimports=['scipy.special.cython_special'],
hookspath=['/Users/Name..../hooks'],
runtime_hooks=[],
excludes=['IPython', 'FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With