带有 pygame 的 Pyinstaller [英] Pyinstaller with pygame

查看:42
本文介绍了带有 pygame 的 Pyinstaller的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾多次尝试使用 PyInstaller 来捆绑我的 Python2 程序,但它似乎从未与 Pygame 模块一起使用.我已经看到关于这个主题的许多其他问题,但我找不到任何有用的答案.

有人知道解决这个问题的方法吗?

I have tried multiple times to use PyInstaller to bundle my Python2 programs, but it never seems to work with the Pygame module. I have seen many other issues on this topic, but I couldn't find any useful answers.

Does anybody know a solution to this?

我正在尝试在 Ubuntu 14.10 上执行此操作.

I am trying to do this on Ubuntu 14.10.

-编辑-

更具体地说:

似乎永远不会工作"意味着当我运行 PyInstaller 并构建应用程序时,它似乎可以工作并制作应用程序.当您尝试运行该应用程序时,没有任何反应.

"never seems to work" means that when I run PyInstaller and build the application it appears to work and makes the application. When you try to run the application nothing happens.

推荐答案

我建议尝试另一个程序,如 py2exe 来捆绑 python 程序,我目前没有遇到任何问题.他们有很多关于基于 cmd 的过程的优秀 youtube 视频.我在使用 pyinstaller 时遇到了一些个人问题,并认为假设您的程序没有缺陷,它只是有问题.

i suggest trying another program like py2exe to bundle python programs i currently have not had any issues with it. Their are lots of good youtube videos on the process which is cmd based. I have had some personal problems using pyinstaller and think it is just buggy assuming your program is not flawed.

这篇关于带有 pygame 的 Pyinstaller的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆