Please Help me About this Pygame Error installing on pip

0 votes
ERROR: Command errored out with exit status 1:
     command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-n5f7oj2r\\pygame\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-n5f7oj2r\\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-bf7iivau'
         cwd: C:\Users\user\AppData\Local\Temp\pip-install-n5f7oj2r\pygame\
    Complete output (17 lines):

    WARNING, No "Setup" File Exists, Running "buildconfig/config.py"
    Using WINDOWS configuration...

    Download prebuilts to "prebuilt_downloads" and copy to "./prebuilt-x64"? [Y/n]Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\user\AppData\Local\Temp\pip-install-n5f7oj2r\pygame\setup.py", line 194, in <module>
        buildconfig.config.main(AUTO_CONFIG)
      File "C:\Users\user\AppData\Local\Temp\pip-install-n5f7oj2r\pygame\buildconfig\config.py", line 210, in main
        deps = CFG.main(**kwds)
      File "C:\Users\user\AppData\Local\Temp\pip-install-n5f7oj2r\pygame\buildconfig\config_win.py", line 576, in main
        and download_win_prebuilt.ask(**download_kwargs):
      File "C:\Users\user\AppData\Local\Temp\pip-install-n5f7oj2r\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.
Oct 9 in Python by Michael
• 120 points

edited Oct 19 by Gitika 372 views

1 answer to this question.

0 votes

Hi, @Micheal,

Download pygame‑1.9.3‑cp37‑cp37m‑win_amd64. While if you have a 64-bit Python version or pygame‑1.9.3‑cp37‑cp37m‑win32.whl if you have a 32-bit version. Then open the command-line, navigate to the directory that contains the wheel file, and install it with pip:

py -3.7 -m pip install pygame‑1.9.3‑cp37‑cp37m‑win_amd64.whl
answered Oct 12 by Gitika
• 50,340 points
C:\Users\user>py -3.7 -m pip install pygame-1.9.3-cp37-cp37m-win_amd64.whl
WARNING: Requirement 'pygame-1.9.3-cp36-cp36m-win_amd64.whl' looks like a filename, but the file does not exist
ERROR: pygame-1.9.3-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform.

I Got this Can u help me?

Hello, @Michael,

Pygame is much easier to install these days. Just do:

 pip install pygame

and it will automatically select the right download for your environment.

I have the EXACT SAME ERROR!!! I tried gltlka's solution and I again got the same error you said! Please tell me if you find a solution!
That's the command him and I did to get that error

Hi, @Tiffany,

Start Python and run: import platform and then platform.architecture() to see which version of Python you're running so you know which .whl to download!

Related Questions In Python

0 votes
0 answers

hello world, somebody can help me to correct this error

for label, value in s.iteritems():     s.set_value(label, ...READ MORE

Jun 5 in Python by WELL
• 140 points
156 views
0 votes
0 answers

For some reason i cannot click on this element/button and have been trying for hours PLEASE HELP!!

from selenium import webdriver from selenium.webdriver.chrome.options import Options from ...READ MORE

Jun 18 in Python by Justin
• 140 points

reshown Jun 18 by Sirajul 107 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 1,562 views
0 votes
0 answers
0 votes
1 answer

what is vm options ? I installed Pycharm on my pc but it shows no vm options file found . What should i do please help me to fix it

Hi, @Mushfiqkhantrial, It is important to run pycharm.sh from the bin folder. The VM ...READ MORE

answered Oct 4 in Python by Gitika
• 50,340 points
138 views
+1 vote
1 answer

Can anyone help me with this error: TypeError: list indices must be integers or slices, not str

Hi, @Varshap  It’s a TypeError, which tells us ...READ MORE

answered Nov 5 in Python by anonymous
• 50,340 points
78 views