Discussion:
[Tutor] Help with Pygame
f***@gmail.com
2015-08-07 22:50:18 UTC
Permalink
I downloaded pygame and tried testing it and it didn't work. I tried the latest version of pygame and it didn't work again. I tried moving the file to the place I think the import code gets programs from so it could open pygame. It didn't work and then I tried changing the name of the PythonX folder. My version of python is 3.4.3, the pygame im trying to use is pygame-1.9.2a0.win32-py3.2 Nothing has worked and it gives me this message in the python shell:

Traceback (most recent call last):
File "C:\Python34\Lib\idlelib\Showdot.py", line 1, in <module>
import pygame
ImportError: No module named 'pygame'


Please Help






Sent from Windows Mail
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-08-08 06:24:17 UTC
Permalink
Post by f***@gmail.com
I downloaded pygame and tried testing it and it didn't work.
File "C:\Python34\Lib\idlelib\Showdot.py", line 1, in <module>
import pygame
ImportError: No module named 'pygame'
It certainly looks like an installation error.

We'd need a lot more specific details about how you installed
it and what your folder structure looks like. But this list
is really about python and the standard library, you might
get better support on Pygame from the pygame mailing list/forum.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Mark Lawrence
2015-08-08 15:52:02 UTC
Permalink
Post by f***@gmail.com
File "C:\Python34\Lib\idlelib\Showdot.py", line 1, in <module>
import pygame
ImportError: No module named 'pygame'
Please Help
Please help us to help you. "I downloaded pygame and tried testing it
and it didn't work" is less than useless. You need to tell us exactly
what you did to install pygame, how you tried to test it and exactly
what happened. If there is a traceback cut and paste the complete
contents, just as you've done above.

Now let's play "spot the mistake".

My version of python is 3.4.3,
------------------------^^^^^
the pygame im trying to use is pygame-1.9.2a0.win32-py3.2
------------------------------------------------------^^^
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Continue reading on narkive:
Loading...