python - Pygame module working in python2, but not python3 in Ubuntu -



python - Pygame module working in python2, but not python3 in Ubuntu -

so i'm trying utilize pygame python3.x, maintain getting error message states "no module named pygame." if run python2.x runs fine, , i'm able utilize want to, mixer module.

does know how can work on python3 well?

i'm using ubuntu 14.04 lts.

cd ~ sudo apt-get install mercurial hg clone https://bitbucket.org/pygame/pygame cd pygame sudo apt-get install python3-dev sudo apt-get install python3-numpy sudo apt-get install libsdl-dev sudo apt-get install libsdl-image1.2-dev sudo apt-get install libsdl-mixer1.2-dev sudo apt-get install libsdl-ttf2.0-dev sudo apt-get install libsmpeg-dev sudo apt-get install libportmidi-dev sudo apt-get install libavformat-dev sudo apt-get install libswscale-dev sudo apt-get install libjpeg-dev sudo apt-get install libfreetype6-dev python3 setup.py build sudo python3 setup.py install

python pygame

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -