Python 13.10 – Download Pygame in Python3.3

13.10pythonpython3

I am using Ubuntu 13.10.I have both python 2.7 and python 3.3.I have installed pygame properly in python 2.7.How can i install it in python3.3.Does pygame support python3.3 or not?

Best Answer

Here's a link to a solution for Ubuntu 12.04. Hope it helps. From the terminal:

  1. Change to your home directory.

    cd ~
    
  2. Get Pygame source code.

    sudo apt-get install mercurial
    hg clone https://bitbucket.org/pygame/pygame
    cd pygame
    
  3. Install dependencies.

    sudo apt-get install python3-dev python3-numpy libsdl-dev libsdl-image1.2-dev \
      libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsmpeg-dev libportmidi-dev \
      libavformat-dev libswscale-dev libjpeg-dev libfreetype6-dev
    
  4. Build and install Pygame.

    python3 setup.py build
    sudo python3 setup.py install
    
Related Question