Python Forum
[PyGame] Why didn't my installation of pygame work?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Why didn't my installation of pygame work?
#1
Hi all. I just tried installing pygame on my Windows system using the following on the command line:

python -m pip install --user pygame
but it seems to have failed. Attached is an image of the command window after it ran. Why didn't this work? Did any part of it install? I don't want to create problems later with a partial install. I guess I will try to find an executable to install instead.

Thanks.

https://drive.google.com/open?id=1qBDPRi...WHnYQChR2k
Reply
#2
Anyone know what I might try? I can't find an exe file on the pygame website. I'm a little wary of using one from some other, unofficial source.

Thanks.
Reply
#3
python 3.7 came out officially days ago. I would not be surprised if pygame does not have a compatible version yet. Try installing python 3.6.X with the associated pygame version if you do not need the python 3.7 features for an easier install process.

If you insist on trying to get 3.7 to work, then read through this for install instructions and troubleshooting.
https://python-forum.io/Thread-PyGame-In...leshooting

There is a pygame 3.7 wheel in the unofficial binaries and they are highly recommended and trustworthy.
https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame
Recommended Tutorials:
Reply
#4
If you have Python 3.6 or older the following runstring should work (which downloads from PyPI):
pip install pygame

I get similar errors using Python 3.7 on Windows 10.

I was successful downloading the wheel file from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pygame which is an unofficial URL for unreleased packages (even though Python 3.7 was released a couple of days ago). Download the appropriate version for your computer. My installation runstring was:
pip install pygame-1.9.3-cp37-cp37m-win32.whl
Output:
Processing c:\python\pygame-1.9.3-cp37-cp37m-win32.whl Installing collected packages: pygame Successfully installed pygame-1.9.3
Lewis
To paraphrase: 'Throw out your dead' code. https://www.youtube.com/watch?v=grbSQ6O6kbs Forward to 1:00
Reply
#5
Thanks guys! It worked with 3.6.5! I appreciate the suggestion!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pygame installation problems Gheryk 5 8,498 Nov-29-2023, 08:49 PM
Last Post: E_Mohamed
  (HELP GREATLY APPRECIATED) New user- Huge Pygame Installation Problem! Jbomb 1 2,782 Jan-12-2021, 07:32 PM
Last Post: MK_CodingSpace
  pygame programe don't work abdo20 2 2,219 Mar-27-2020, 02:16 AM
Last Post: samdaly

Forum Jump:

User Panel Messages

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