'How to install pygame?
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?
Solution 1:[1]
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.
Solution 2:[2]
Check out downloads on their bitbucket repo (for windows): https://bitbucket.org/pygame/pygame/downloads
Solution 3:[3]
On Windows: open your comandline and type:
pip install pygame
On Debian-based Linux type into your terminal:
sudo apt-get install python-pygame
Solution 4:[4]
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 ;)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | user3002473 |
| Solution 2 | |
| Solution 3 | Jan Meisel |
| Solution 4 | Piotr Kamoda |
