15

I have been trying to install pygame for 3.3 and 3.4 and can't find a way to install it probably with out it giving a error when I do pygame.init().

Is it because pygame.init() is not the proper code or is it because I installed it incorrectly? If so, can someone tell me how to install it?

pppery
  • 3,731
  • 22
  • 33
  • 46
user3545299
  • 151
  • 1
  • 1
  • 3

4 Answers4

15

You can find binary installations for pygame for python 3.4 on windows here. I'm not sure where you could find it if you're running a different operating system.

user3002473
  • 4,835
  • 8
  • 35
  • 61
3

Check out downloads on their bitbucket repo (for windows): https://bitbucket.org/pygame/pygame/downloads

2

On Windows: open your comandline and type:

   pip install pygame

On Debian-based Linux type into your terminal:

sudo apt-get install python-pygame
Jan Meisel
  • 259
  • 3
  • 11
  • As pygame appeared in the PIP reository I think it is the best way to do that for now. You can use pip on linux too but with *sudo* if installing to a global system interpreter. –  Mar 08 '17 at 16:55
1

I would recommend Gohlke's precompiled pythonlibs in wheel format :) pygame from Gohlke

I was never let down by those libraries and I used numpy, scipy, scikit-learn etc. (and pygame as well) extensively, which are one of the tougher to build on windows ;)

Piotr Kamoda
  • 956
  • 1
  • 9
  • 24