【发布时间】:2018-12-30 12:30:56
【问题描述】:
当我对这个 pygame 导入进行编码时,它不适用于 spyder:
import pygame
Window_width=700
Window_hight=500
pygame.init()
size= (Window_width, Window_hight)
screen= pygame.display.set_mode(size)
pygame.display.set_caption("Game")
pygame.quit()
spyder的答案是:
>Python 2.7.14 |Anaconda, Inc.| (default, Nov 8 2017, 13:40:45) [MSC v.1500
64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.
>File "C:/Users/hpinko/Desktop/python scripts/game.py", line 1, in <module>
import pygame
ImportError: No module named pygame
请帮我解决这个问题。
【问题讨论】:
-
你安装了pygame吗?
-
是的,我没有失速