Wednesday, May 1, 2024
 Popular · Latest · Hot · Upcoming
17
rated 0 times [  17] [ 0]  / answers: 1 / hits: 48040  / 2 Years ago, sun, december 26, 2021, 1:37:10

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?


More From » 13.10

 Answers
1

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


[#27623] Monday, December 27, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mocipe

Total Points: 161
Total Questions: 106
Total Answers: 118

Location: Cambodia
Member since Thu, Oct 7, 2021
3 Years ago
;