Pygame.init() Shows As Undefined Variable After Installing Pygame
I'm trying to write a sample Python application using Pygame: import pygame, sys from pygame.locals import * pygame.init() DISPLAYSURF = pygame.display.set_mode((400, 300)) pygame
Solution 1:
Here are some suggestions. One of these should solve the problem:
-I see that your release is the 32 bit version. Considering you probably have a 64 bit computer, it is possible that you have a 64 bit python distribution. This error is sometimes caused by bit rate differences. You can check the bit rate of the python distribution like so:
import platform
platform.architecture()
-According to this question, uninstalling pygame, and redownloading and installing it seems to fix the problem sometimes.
Post a Comment for "Pygame.init() Shows As Undefined Variable After Installing Pygame"