Python Forum
Cannot import Pygame - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Cannot import Pygame (/thread-3161.html)



Cannot import Pygame - PySoD - May-02-2017

I cannot import pygame.i dont know why?.i could use some help
Error:
ModueNotFoundError:No module named pygame



RE: Cannot import Pygame - buran - May-02-2017

Pygame is third party package. You need to install it first.

Getting started


RE: Cannot import Pygame - PySoD - May-02-2017

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


RE: Cannot import Pygame - Bass - May-02-2017

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


RE: Cannot import Pygame - PySoD - May-02-2017

This is my first attempt.My os:windows ultimate 32 bit
i have installed python 3.6,


RE: Cannot import Pygame - Bass - May-02-2017

Could you check the case, i.e. did you install Pygame and are importing pygame (lowercase P)?


RE: Cannot import Pygame - PySoD - May-02-2017

(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.


RE: Cannot import Pygame - buran - May-02-2017

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?


RE: Cannot import Pygame - Bass - May-02-2017

Glad to have helped.

Bass


RE: Cannot import Pygame - PySoD - May-02-2017

(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