상세 컨텐츠

본문 제목

ImportError: No module named 'pygame'

pygame

by 안졸리냐젤리 2021. 10. 14. 02:32

본문

Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import pygame
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import pygame
ImportError: No module named 'pygame'
>>>

윈도우 7 64 에서 python 3.3.2 , pygame 1.9.2a0 를 설치 한뒤 import pygame 를 했는데 위의 에러가 발생 합니다

어떻게 해결 해야 할까요?

 

 

 

 

###답변###

 

python -m pip install pygame 

를 실행 해 보세요

 

###답변###

 

https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame

 

Python Extension Packages for Windows - Christoph Gohlke

by Christoph Gohlke, Laboratory for Fluorescence Dynamics, University of California, Irvine. Updated on 13 October 2021 at 06:17 UTC. This page provides 32- and 64-bit Windows binaries of many scientific open-source extension packages for the official CPyt

www.lfd.uci.edu

여기서 pygame-1.9.2a0-cp35-none-win32.whl 를 다운 받으세요

다운로드 폴더로 이동해서 cmd 를 여시고 

pip3 install pygame-1.9.2a0-cp35-none-win32.whl 를 입력하세요

 

출처 : https://stackoverflow.com/questions/18317521/importerror-no-module-named-pygame

관련글 더보기