Hi there
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...
When I code this :
import pygame
from pygame.locals import *
pygame.init()
fenetre = pygame.display.set_mode((640, 480))
The answer of spyder is :
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'
Please, help me to fix this,
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.