打包成功提示successfully,执行可执行文件时报错
错误内容是
This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.
查过各种都和我不一样,我用pycharm能编译能运行,我还专门把虚拟解释器换成系统解释器再打包仍然没有用,请问怎么破
打包成功提示successfully,执行可执行文件时报错
错误内容是
This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.
查过各种都和我不一样,我用pycharm能编译能运行,我还专门把虚拟解释器换成系统解释器再打包仍然没有用,请问怎么破
如果pycharm能编译运行,可能是执行方式的问题,打包成exec后,执行方式估计发生了变化。
另外,可以用py2app试试,打包成app试试。