相关文章推荐
有情有义的大白菜  ·  python ...·  3 周前    · 
完美的馒头  ·  python QTreeWidget ...·  3 周前    · 
失眠的烤红薯  ·  python qt textBrowser ...·  3 周前    · 
帅气的领带  ·  【Pyspark ...·  3 天前    · 
近视的橙子  ·  python ...·  2 天前    · 
高大的包子  ·  OpenCV(cv::medianBlur( ...·  5 月前    · 
独立的长颈鹿  ·  JR51699: ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

As far as I'm aware, cx_freeze is the only app able to make Python scripts to .exe files. However, I would like to make a GUI exe in Python 3. And after freezing a simple Tkinter GUI and running the exe, I get the following error:

> _tkinter.TclError: Can't find a usable init.tcl in the following directories:
>     {C:\Users\User\Desktop\tkinter\build\exe.win32-3.1\tcl}
> C:/Users/User/Desktop/tkinter/build/exe.win32-3.1/tcl8.5
> C:/Users/User/Desktop/tkinter/build/lib/tcl8.5
> C:/Users/User/Desktop/tkinter/build/lib/tcl8.5
> C:/Users/User/Desktop/tkinter/lib/tcl8.5
> C:/Users/User/Desktop/tkinter/build/library
> C:/Users/User/Desktop/tk inter/library
> C:/Users/User/Desktop/tkinter/tcl8.5.2/library
> C:/Users/User/Desktop/tcl8.5.2/library
> This probably means that Tcl wasn't installed properly.

I am using the simple setup cx_freeze option.

My cx_freeze exe bundle is save to the following directory:

C:\Users\User\Desktop\tkinter\build\exe.win32-3.1

Files are:

_ctypes.pyd
_tkinter.pyd
basicLABEL.exe
library.zip
python31.dll
tcl85.dll
tk85.dll
unicodedata.pyd
                Just wanted to state that 11/23/2013 cx_freeze using the regular bat file - will do this for you.  You don't need to copy the files (python33).  Cheers!
– MKaras
                Nov 23, 2013 at 14:22
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.