最近,我发现了 pygame 制作的乒乓球游戏,我试图将其转换为 .exe 文件,但我不能。这是我尝试转换的代码的链接。 https://algorithm.joho.info/programming/python/pygame-pong/ (这个网站是日文的,代码在中间)
感谢您的帮助!!
最佳答案
pyinstaller最高兼容 python 3.6。
Install PyInstaller from PyPI:
pip install pyinstaller
Go to your program’s directory and run:
pyinstaller yourprogram.py
关于python - 如何将 .py 转换为 .exe?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53142587/