在你的程序中包含pygame

在你的程序中包含pygame

本文介绍了在你的程序中包含pygame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我即将完成一个使用Pygame的程序,这意味着你需要安装Python和Pygame才能运行游戏。如何在程序本身中包含Python和Pygame,还是有一种简单的方法来为游戏制作安装程序?

I'm about to finish a program which uses Pygame, which means you would need to install Python and Pygame in order to run the game. How can I include Python and Pygame in the program itself, or is there an easy way to make an installer for the game?

推荐答案

py2exe 似乎是一个受欢迎的答案,我建议也要考虑一下。我还建议尝试 pyinstaller 。设置更复杂,但教程很棒。

py2exe seems to be a popular answer, and I would suggest looking into it as well. I would also suggest trying pyinstaller. The setup is a bit more involved, but the tutorials are great.

这篇关于在你的程序中包含pygame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 09:48