Bottom Page

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
Quote
#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.
Quote
#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
ljmetzger likes this post
Quote
#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
Quote
#5
Thanks guys! It worked with 3.6.5! I appreciate the suggestion!
metulburr likes this post
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  pygame installation problems Gheryk 1 486 May-17-2018, 05:13 PM
Last Post: metulburr
  [PyGame] Problem importing pygame / installing pygame Klar 4 1,319 Dec-16-2017, 05:48 PM
Last Post: Klar
  [Pygame] Avoid SentDex pygame tutorials georgecoopers 1 1,180 Apr-09-2017, 12:40 PM
Last Post: metulburr
  [PyGame] Installation problems leap 4 1,760 Jan-09-2017, 11:26 PM
Last Post: leap

Forum Jump:


Users browsing this thread: 1 Guest(s)