Advertisement
otorp2

install pygame for python 3.4

Jan 18th, 2016
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. How to install Pygame for Python 3.4 on Ubuntu 14.04
  2.  
  3. First run this to install dependencies:
  4.  
  5. sudo apt-get install mercurial python3-dev python3-numpy \
  6. libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev \
  7. libsdl1.2-dev libportmidi-dev libswscale-dev libavformat-dev libavcodec-dev libfreetype6-dev
  8.  
  9. Then download the source for pygame:
  10.  
  11. First install mercurial if you dont have it installed:
  12.  
  13. sudo apt-get install mercurial
  14.  
  15. then:
  16.  
  17. hg clone https://bitbucket.org/pygame/pygame
  18.  
  19. Now build and install pygame for Python 3.4:
  20.  
  21. cd pygame
  22. python3 setup.py build
  23. sudo python3 setup.py install
  24.  
  25.  
  26. Additional comments:
  27.  
  28. The only version of Python3 I had installed was 3.4 if you have other versions
  29. you might have to be more specific.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement