scipy import error with pyinstaller
问题 I am trying to build a "One File" executable for my project with pyinstaller and a .spec file. The content of the spec file is as follows: # -*- mode: python -*- block_cipher = None a = Analysis(['__main__.py'], pathex=['D:\\opt_frame'], binaries=[], datas=[], hiddenimports=['scipy.special', 'scipy.special.comb'], hookspath=[], runtime_hooks=[], excludes=[], win_no_prefer_redirects=False, win_private_assemblies=False, cipher=block_cipher) pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)