안녕하세요, exe로 파이썬 스크립트를 컴파일하는 데 상대적으로 새로운입니다. 내 스크립트를 컴파일하는 데 cx_freeze를 사용하고 내장 된 exe를 실행하면 오류가 발생합니다. 구글을 많이 가지고 있지만 너무 확신하지는 마세요. 오류 :exe error with cx_freeze
Cannot import traceback module. Exception: No module named re Original Exception: No module named re
해결 방법에 대해 너무 자세하지 않습니다. 나는 아마도 re라는 모듈 사이에 충돌이 있다는 것을 읽었을 까? 파이썬으로? cx_freeze 모듈에 re라는 모듈이 있습니까? 런타임 작업 디렉토리의 실행 파일이있는 디렉토리가 아닌 경우
from cx_Freeze import setup, Executable
includes = []
includefiles = ['remindersText.pkl']
eggsacutibull = Executable(
script = "podlancer.py",
initScript = None,
base = 'Win32GUI',
targetName = "podlancer.exe",
compress = True,
copyDependentFiles = True,
appendScriptToExe = False,
appendScriptToLibrary = False,
icon = None
)
setup(
name = "Podlancer",
version = "0.1",
author = 'jono',
description = "Podlancer UI script",
options = {"build_exe": {"includes":includes, "include_files": includefiles}},
executables = [eggsacutibull]
)
이것은 cx_Freeze의 버그입니다. 다음 릴리스에서 수정되어 다음 주에 출시 될 예정입니다. –