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
| Pygame, sounds don't play 파이게임에서 소리 재생이 안됩니다. (0) | 2021.10.15 |
|---|---|
| Pygame error: 'pygame' has no attribute 'init' (0) | 2021.10.15 |
| pygame 에서 텍스트를 어떻게 표시 하나요? (0) | 2021.10.15 |
| dll load failed 1은(는) 올바른 win32 응용 프로그램이 아닙니다 (0) | 2021.10.14 |
| pygqme을 설치할수 없습니다 (0) | 2021.10.14 |