Python Forum
How to install latest version of 'pygame' - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: How to install latest version of 'pygame' (/thread-10402.html)



How to install latest version of 'pygame' - sylas - May-19-2018

Hi all! I am with windows( on command prompt). First: is it possible to look first at all versions of 'pygame'. Second how to install latest version of 'pygame'. Thanks in advance.


RE: How to install latest version of 'pygame' - snippsat - May-19-2018

You install with pip install pygame.
From cmd:
Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. Med enerett.

C:\WINDOWS\system32>cd\
# Install
C:\>pip install pygame
Collecting pygame
  Downloading https://files.pythonhosted.org/packages/ec/..../pygame-1.9.3-cp36-cp36m-win32.whl (4.0MB)
    100% |████████████████████████████████| 4.0MB 2.6MB/s
Installing collected packages: pygame
Successfully installed pygame-1.9.3

# Test that it work
C:\>python
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
>>> pygame.__version__
'1.9.3'
>>> exit()

C:\>
pip should work like this,also from anywhere in cmd.
If not follow Python 3.6 and pip installation under Windows
@metulburr Install and Troubleshooting pygame