[Tutor] pygame

Alan Gauld alan.gauld at yahoo.co.uk
Thu Oct 22 06:48:47 EDT 2020


On 22/10/2020 00:07, gad fum wrote:

> Command Prompt and write this:py -m pip install pygame. I did that but its
> giving me this message:

There are a couple of oddities in this.
The first is that you seem to be using Python v2 but that is
out of support so you really should be using Python v3
(although I'm not sure if pygame supports v3?!)

The other thing is that you appear to have Python installed
in your Documents folder which is not the usual place...

Beyond that I'm not sure what the error is indicating.
Perhaps you could try the pygame forum, I'm guessing they
will be more au-fait with pygame install niggles than we are.


> ERROR: Command errored out with exit status 1:
> 
> command: 'C:\Users\user\Documents\python.exe' -c 'import sys, setuptools,
> tokenize; sys.argv[0] =
> '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-fbs2xk25\\pygame\\setup.py'"'"';
> __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-fbs2xk25\\pygame\\setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> egg_info --egg-base
> 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-wmjnlqip'
> 
> cwd: C:\Users\user\AppData\Local\Temp\pip-install-fbs2xk25\pygame\
> 
> Complete output (17 lines):

...

> File
> "C:\Users\user\AppData\Local\Temp\pip-install-fbs2xk25\pygame\buildconfig\download_win_prebuilt.py",
> line 302, in ask
> 
> reply = raw_input(
> 
> EOFError: EOF when reading a line
> 
> ----------------------------------------
> 
> ERROR: Command errored out with exit status 1: python setup.py egg_info
> Check the logs for full command output.

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




More information about the Tutor mailing list