상세 컨텐츠

본문 제목

Pygame error: 'pygame' has no attribute 'init'

pygame

by 안졸리냐젤리 2021. 10. 15. 01:28

본문

파이게임을 설치 후 실행시 다음과 같은 에러가 발생 합니다

 AttributeError: module 'pygame' has no attribute 'init'

 

원인이 무엇일까요?

 

 

###답변###

아마도 당신의 파일 이름이 pygame.py 인것 같습니다.

pygame 은 모듈의 이름이므로  파일의 이름을 pygame 이 아닌 다른 이름으로 바꿔 주세요

 

출처 : https://stackoverflow.com/questions/34343894/pygame-error-pygame-has-no-attribute-init

관련글 더보기