I'm a beginner, I tried to install pygame on spyder but it doesn't work.
With python it works, but it doesn't with spyder...
import pygame
from pygame.locals import *
pygame.init()
fenetre = pygame.display.set_mode((640, 480))
runfile('C:/Users/utilisateur/Documents/WinPython/WinPython-64bit-3.4.3.3/settings/.spyder2-py3/sanstitre2.py', wdir='C:/Users/utilisateur/Documents/WinPython/WinPython-64bit-3.4.3.3/settings/.spyder2-py3')
Traceback (most recent call last):
File "<ipython-input-5-e9501e8c2683>", line 1, in <module>
runfile('C:/Users/utilisateur/Documents/WinPython/WinPython-64bit-3.4.3.3/settings/.spyder2-py3/sanstitre2.py', wdir='C:/Users/utilisateur/Documents/WinPython/WinPython-64bit-3.4.3.3/settings/.spyder2-py3')
File "C:\Users\utilisateur\Documents\WinPython\WinPython-64bit-3.4.3.3\python-3.4.3.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 682, in runfile
execfile(filename, namespace)
File "C:\Users\utilisateur\Documents\WinPython\WinPython-64bit-3.4.3.3\python-3.4.3.amd64\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 85, in execfile
exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
File "C:/Users/utilisateur/Documents/WinPython/WinPython-64bit-3.4.3.3/settings/.spyder2-py3/sanstitre2.py", line 6, in <module>
pygame.init()
AttributeError: 'module' object has no attribute 'init'