Crossin的编程教室

标题: Mac环境下用pyinsta打包用pygame写的脚步出错,求大佬进来帮.... [打印本页]

作者: ptsghs    时间: 2018-9-1 18:25
标题: Mac环境下用pyinsta打包用pygame写的脚步出错,求大佬进来帮....
环境 Mac OS 10.13.4
        Python3.6.6rc1
        pyinstaller 3.3.1
在终端打开脚本文件所在地后,用pyinstaller -F 脚本文件名.py
成功打包
打开exec文件,出现以下。
WechatIMG35.jpeg
Traceback (most recent call last):
  File "site-packages/PyInstaller/loader/rthooks/pyi_rth__tkinter.py", line 28, in <module>
FileNotFoundError: Tcl data directory "/var/folders/1_/6fvtjnz57l1bdhhdzy2sct700000gn/T/_MEI5oD8x4/tcl" not found.
[68059] Failed to execute script pyi_rth__tkinter
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[进程已完成]
求大神指点指点



作者: crossin先生    时间: 2018-9-1 23:43
没用过这个方法,搜了下,好像pyintaller对tkinter支持不好
你换 ex_freeze 试试看呢




欢迎光临 Crossin的编程教室 (https://bbs.crossincode.com/) Powered by Discuz! X2.5