Python Forum
[PyGame] Unable to install pygame
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Unable to install pygame
#1
I have been unable to install pygame and have attempted every fix I can find online without success. I have include error message. Has anyone else encountered this issue.

Microsoft Windows [Version 10.0.26200.8037]
© Microsoft Corporation. All rights reserved.

C:\Users\andre>pip install pygame
Collecting pygame
Using cached pygame-2.6.1.tar.gz (14.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [123 lines of output]
Skipping Cython compilation


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

Hoping someone can offer a suggestion or fix Smile
Reply
#2
I think pygame works with python versions 3.13 and earlier. What version of python are you using? You might need to create a virtual environment for 3.13 and use that for running pygame.

See stackoverflow discussion

https://stackoverflow.com/questions/7991...ython-3-14
Reply
#3
I have pygame installed on python 3.9.5.
I did it with PCCharm.
you may want to try this
pip install pygame ce
Good luck, if you find out how to do it with the command prompt
for python 3.9.5 let me know.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to install pygame (but it seems to already be installed) garthE 3 5,394 Jun-28-2025, 03:54 AM
Last Post: Plyth
  Cannot install and use pygame zero garthE 7 7,093 Sep-24-2024, 11:56 AM
Last Post: garthE
  Can't get pygame to install djwilson0495 13 21,104 Dec-07-2020, 01:30 PM
Last Post: djwilson0495
  Trying to install pygame Mac OS x high sierra giladal 2 4,601 Oct-18-2020, 09:27 PM
Last Post: nilamo
  Error to install pygame skp 1 5,537 Apr-14-2020, 05:17 PM
Last Post: joe_momma
  Unable to exit Pygame window Hesper 2 6,232 Mar-30-2020, 08:59 AM
Last Post: Hesper
  PIP cannot install Pygame Amaly84 6 18,670 Sep-04-2019, 07:59 PM
Last Post: Amaly84
  pip install pygame choking on SDL dependency sneakyimp 20 22,557 Jan-23-2019, 12:36 PM
Last Post: metulburr
  pip can't install pygame SheeppOSU 1 11,042 Dec-08-2018, 08:20 PM
Last Post: snippsat
  How to install Pygame chappie 2 5,056 Dec-06-2017, 10:47 PM
Last Post: chappie

Forum Jump:

User Panel Messages

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