Python Forum
Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot import Pygame
#1
I cannot import pygame.i dont know why?.i could use some help
Error:
ModueNotFoundError:No module named pygame
Reply
#2
Pygame is third party package. You need to install it first.

Getting started
Reply
#3
(May-02-2017, 08:45 AM)buran Wrote: You need to install it first.
No.i have already installed pygame using the Pip.
Reply
#4
Hi,

It sounds as if you needs to install the pygame library. Is this the first time that you have tried to use it? 

Could you provide details of the development environment that you are using? this could be Spyder for example.

Bass

"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum
Reply
#5
This is my first attempt.My os:windows ultimate 32 bit
i have installed python 3.6,
Reply
#6
Could you check the case, i.e. did you install Pygame and are importing pygame (lowercase P)?

"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum
Reply
#7
(May-02-2017, 08:55 AM)Bass Wrote: Could you check the case, i.e. did you install Pygame and are importing pygame (lowercase P)?
wait,may be that was the reason,i will check .

Thanks Bass.You made my day.The case was the error.thank you so much.
Reply
#8
is it possible that you have more than one python installations and istalled pygame for different python installation than the one you try to use it? e.g. some Linux distros come with both python2 and python3 installed. Or maybe you installed both python versions? was there any error when you installed pygame?
Reply
#9
Glad to have helped.

Bass

"The good thing about standards is that you have so many to choose from" Andy S. Tanenbaum
Reply
#10
(May-02-2017, 08:59 AM)buran Wrote: s it possible that you have more than one python installations and istalled pygame for different python installation than the one you try to use it? e.g. some Linux distros come with both python2 and python3 installed. Or maybe you installed both python versions? was there any error when you installed pygame?
Never mind.my problem is solved.it was with the case of the letter P in Pygame
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame*import pygame ImportError: No module named pygame CASPERHANISCH 1 9,771 Jun-05-2017, 09:50 PM
Last Post: nilamo
  Can Pygame import and export SVG? OnisionTheOninonBoy 5 6,612 Feb-08-2017, 01:29 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020