내가 함께 명령 프롬프트에서 내 간단한 스크립트에서 exe를 만드는거야 "스크립트를 실행하지 못했습니다" pyInstaller 중에 --onefile --exclude 모듈 scipy myscript.pypyInstaller 중에 제외 모듈 원인은
때 .exe를 엽니 다. "myscript.exe 스크립트를 실행하지 못했습니다."라는 메시지가 나타납니다.
제외 모듈을 사용하지 않으면 프로그램이 완벽하게 작동합니다. 잘 작동합니다. scipy의 유무에 관계없이 (exclude-module 명령을 배우기 위해 모듈을 추가했을뿐입니다)
여기 있습니다 .spec fi 파일 시스템 :
# -*- 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)
나중에 exclude 옵션을 사용하여 도움을 받으실 계획입니다!
자레드