프로그램은 약속을 만들어 QsQLite 데이터베이스로 작성된 일정에 배치합니다. 이 프로그램은 .py에서 실행되지만 .exe에 있어야합니다. cx_Freeze를 사용하여 .exe 파일을 만들었지 만 프로그램이 SQLite 데이터베이스를 생성하지 않습니다. 데이터베이스 그래서, 그것은 어떻게 해결 될 수SQLite 데이터베이스를 사용하여 .py에서 .exe 파일을 작성하십시오.
을 열 수 없습니다
from cx_Freeze import setup, Executable
import os
import sys
os.environ['TCL_LIBRARY'] = r'C:\Program Files\Python35\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\Program Files\Python35\tcl\tk8.6'
build_exe_options = {"packages": [
'os','sys','sqlite3'], 'include_files': [os.path.join(sys.base_prefix, 'DLLs', 'sqlite3.dll'), 'main.py','util.py','data.db']}
setup(
name = "Eclients",
version = "0.1",
options = {"build_exe": build_exe_options},
executables = [Executable("main.py")]
)
그러나 : 그래서 여기 내 설치 파일입니까?
@ MrGumble, 내 질문에 편집, 나는 TCL 오류를 해결하지만 데이터베이스는 여전히 열 수 없습니다, 당신은 다른 생각을 가지고 작동하지 않습니다? – akeg