Jump to content

POWERED BY:

Archived

This topic is now archived and is closed to further replies.

Arcashaid Espert

Como instalar pygame no linux usando python 3.5.1

Recommended Posts

Arcashaid Espert, você não informou qual distribuição do GNU/Linux você está utilizando... Caso seja o Ubuntu, você pode digitar em um terminal:

$ sudo apt-get install libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy mercurial libportmidi-dev libportmidi0 libavformat-dev libswscale-dev 

Agora, crie uma pasta para baixar o código do PyGame.

mkdir temp
cd temp

No mesmo terminal baixe o código do PyGame:

$ hg clone https://bitbucket.org/pygame/pygame
$ cd pygame

Agora, você pode ver se as dependências foram satisfeitas corretamente:

python config.py

Se tudo deu certo, pode instalar o PyGame:

python setup.py build
sudo python setup.py install

Pronto. Agora é só testar, digite em um terminal:

$ python
>>> import pygame

Espero ter ajudado. :)

Share this post


Link to post
Share on other sites

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.