使用pygame模块作为跨平台可执行文件打包python脚本的最佳方式是什么?我需要能够在我的Linux机器上编译。我试过使用PyInstaller,但是,当我运行编译后的可执行文件时,它显示找不到pygame模块。当我将它作为python脚本通过Wing IDE debug运行时,它工作得很好,所以我显然已经安装了pygame。但是,当我尝试在没有IDE调试的情况下运行时,它无法创建窗口。我如何打包我的游戏,让它在任何计算机上运行,Linux或Win
当我使用pyinstaller将程序转换为可执行文件时,启动该可执行文件时会出现以下错误:File "site-packages\pynput\keyboard\__init__.py", line 31_init__.py", line 82, in backend ImportError [11492] Failed to execute script friend_project 我已经尝试使用pyinstaller命令pyinstaller --on
我用Python2编写的代码在从Python运行时工作得很好,但是在通过PyInstaller发送脚本并运行可执行文件之后,它会弹出: File "<string>", line 26, in <module>
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/out00-PYZ