I am trying to learn Python and thought it would be more interesting to learn to write games but the difficult bit seems to be getting pygame to work.
I'm not really into IT so sorry this is a but rambling and I have probably left off some geeky stuff you need to know.
I have windows 10, which is 64bit,
I installed python 2.7 and then tried to get pygame to work.
When I open python it has c:\Python27\python.exe at the top of the screen and type help("modules") then it lists pygame. So it is there.
however I am following a book which is supposed to teach me to program but I am having problems starting.
It says to write a program in notepad which I saved in c:\user\user\firstprogram.py, the first line is
import pygame, sys
However when I go into the cmd prompt and put
python firstprogram.py
Its error message is
Traceback File "Firstprogram.py", line 1, in import pygame, sys Modulenotfounderror: no module name 'pygame'
There are several possible reasons. Is it the version of pygame?
Do I need to tell python where pygame is and how do I do this, When should python and pygame be installed i.e. c:\ etc etc as searching google doesn't seem to tell me this.