Mac电脑,已在python3用pip安装tcl/tk, 运行pyinstaller打包时有一行是error, 说tcl/tk improperly installed on this system.然后打包后的exec打开也会显示error,生成的.pkg 也无法打开。
自己通过在site-packages/PyInstaller/hooks/hook-_tkinter.py中在if 'Library/Frameworks' in path_to_tcl后添加 and 'Python' not in path_to_tcl:解决掉了,但是安装包pkg 还是打不开,并且exec 点开也报错no suitable image found。求问怎么解决呢。(打包时已经没有报错了