Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Getting started
#1
Dear Forum,

I am having trouble getting started. I just downloaded and installed pygame, but I can't initialize it.

Here is my code:

import pygame
pygame.init()

and here is my error message.

Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
pygame.init()
AttributeError: module 'pygame' has no attribute 'init'

I am using python 3.5.2 and pygame 1.9.2.a0.win32-py2.7

Thanks.
Reply


Messages In This Thread
Getting started - by goofymdjd - Feb-20-2018, 09:57 PM
RE: Getting started - by metulburr - Feb-20-2018, 11:50 PM
RE: Getting started - by Windspar - Feb-21-2018, 02:02 AM
RE: Getting started - by metulburr - Feb-21-2018, 02:58 AM
RE: Getting started - by goofymdjd - Feb-21-2018, 06:57 AM
RE: Getting started - by goofymdjd - Feb-21-2018, 08:17 AM
RE: Getting started - by metulburr - Feb-21-2018, 07:20 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020