I'm creating an exe out of my simple script in command prompt with: pyinstaller --onefile --exclude-module scipy myscript.py
and when I open the .exe I get a message that says "failed to run myscript.exe script"
but the thing is the program works perfectly fine when I don't use exclude-module.. it also works perfectly fine with or without scipy (I only added it in to learn the exclude-module command)
here is my .spec file that was generated by pysinstaller:
# -*- mode: python -*-
block_cipher = None
a = Analysis(['Simpletkinter.py'],
pathex=['C:\\Program Files (x86)\\Python36-32\\Scripts'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=['scipy'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Simpletkinter',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=False )
I plan to use the exclude option in the future so any help would be much appreciated!
Jared