How to import pygame.locals successfully

后端 未结 4 1102
[愿得一人]
[愿得一人] 2021-01-17 01:21

Hello there Stackoverflowers,

I am learning how to program with Pygame and I am trying to import pygame.locals According to the tutorial I am learning from, I am sta

4条回答
  •  情话喂你
    2021-01-17 01:55

    I found that on Windows 7 64-bit, you need to get Python 3.3.5, as well as the pygame-1.9.2a0-hg version from Bitbucket.

    This solved the problem ImportError: No module named 'pygame.locals' for me.

    (Somehow it's a bit weird that the pygame website doesn't provide latest versions of pygame.)

提交回复
热议问题