如何使用扩展的图像支持编译pygame?

2024-04-16 13:59:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在按照https://www.pygame.org/wiki/CompileWindows的说明进行操作,并且我已经成功编译了pygame!但是,我仍然无法获得扩展的图像支持来工作Pygame's documentation说:

The image module is a required dependency of pygame, but it only optionally supports any extended file formats. By default it can only load uncompressed BMP images.

如何指定该选项?我需要学校的pygame(支持png),但也需要最新的python版本(3.9)


Tags: thehttpsorg图像imageonlyisdocumentation