0
私はcv_freeze
ライブラリで、私のpythonスクリプトをexe GUIアプリケーションに作成しようとしています。私のアプリケーションはtkinter
のみを使用していますが、exeファイルをビルドしようとすると、TCL_LIBRARY
というエラーが発生します。何故ですか?これは私のセットアップコードです:exeファイルにpythonスクリプトを作成する
import cx_Freeze
import sys
import matplotlib
base = None
if sys.platform == 'win32':
base = "Win32GUI"
executables = [cx_Freeze.Executable("tkinterVid28.py", base=base, icon="clienticon.ico")]
cx_Freeze.setup(
name = "SeaofBTC-Client",
options = {"build_exe": {"packages":["easygui","matplotlib"]}},
version = "0.01",
description = "Sea of BTC trading application",
executables = executables
)
、これはmyGUI Pythonコードです:私は、Pythonの3.6で助けて助けたりないため 感謝を使用しています
import tkinter
top = tkinter.Tk()
# Code to add widgets will go here...
top.mainloop()
。
を行うことが今exeファイルを構築PythonXX-XXフォルダに立ち上がっパスを使用します。しかし、私はexeファイルを開くときにこのエラーが発生します:http://i.imgur.com/v2YMpBN.png – odri
@odriこのhttps://stackoverflow.com/questions/43568915/import-tkinter-if-this-あなたのpython-may-be-be-configured-for-tk – James
は今、うまくいきました。ありがとうございました! – odri