My IDLE says Pygame has not been installed even though I have?
My IDLE says Pygame has not been installed even though I have?
Whenever I run my code in the IDLE's shell, it always comes out with this error:
Traceback (most recent call last):
File "C:UsersdELLDesktopMyProjectReactionTimeProgram.py", line 2, in <module>
import pygame
ImportError: No module named pygame
Is it telling me I haven't installed Pygame, because I have.
How can I fix this error?
Best Regards
RMR :)
1 Answer
1
Are you running the proper version of python? When I run pygame with python2 instead of python3, that's what happens for me.
I'm running python 3.6.3 and it is still happening.
– R.M.R
Sep 1 at 17:06
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Possible duplicate of ImportError: No module named 'pygame'
– smoggers
Sep 1 at 19:30