Mac pyinstaller 打包后执行PyInstaller/loader/rthooks/pyi_rth__tkinter.py" Tcl data directory。。。。 tcl" not found
以上属于python3 的tkinter 没有导入.解决放方法如下:
1、找到python3 PyInstaller库中的hooks/hook-_tkinter.py 打开。
2、找到大概在154行函数:def _find_tcl_tk(hook_api): 往下。
3、找到 if ‘Library/Frameworks’ in path_to_tcl:
4 、在末尾添加 and ‘Python’ not in path_to_tcl
5、保存!
然后就可开始pyinstaller重新打包。