Apr-25-2018, 05:08 PM
(Apr-25-2018, 11:22 AM)Dobrasz Wrote: AttributeError: module 'pygame' has no attribute 'init'
[Finished in 0.0s with exit code 1]
[cmd: ['/usr/local/bin/python3', '-u', '/Users/Dobrasz/Documents/Programming/Python 3/pygame.py']]
You named your file
pygame.py
. So when you import pygame
, you don't ever actually import pygame, as it's just importing whatever file you made yourself. Rename your file (not pygame), and try again :p