Instalação
Em algumas distribuições Unix Like, podem ser instalado pelo gerenciador de pacotes, nas outras somente pelos fontes.
Nestas abaixo estão disponíveis através do gerenciador de pacotes da distro:
Ubuntu - pygame is available through apt-get in the Universe (1.9.1)
Gentoo - pygame is available in the portage system (1.9.1 + 1.9.2prerelease)
Fedora - Package repositories have support for pygame (1.9.1)
Suse - The Yast package system has pygame (updated to 1.9.1)
OLPC - comes with the XO, and sugar (1.9.1).
archlinux - pygame is available through pacman (1.9.1)
Debian - pygame is available through apt-get (1.9.1)
FreeBSD - pygame is included in standard ports as py26-game (1.8.1)
OpenBSD - pygame is included in standard ports (1.8.1)
Podem ser instaladas da seguinte forma:
Debian-Like
sudo aptitude build-dep python-dev python3-dev python-pygame libv4l-dev libpjmedia-videodev2
RedHat-Like
yum-builddep python-pygame
Nas que não estão disponíveis, a instalação através dos fontes é da seguinte forma:
- Baixe o pacote da ultima versão diretamente do sítio oficial: http://pygame.org/ftp/;
- Descompacte o arquivo e entre no diretório;
- Execute: python setup.py install
Virtualenv
- virtualenv-3.4 py34;
- source py34/bin/activate;
- pip install -U pip;
- pip install numpy;
- pip install pygame==1.9.1release
Comentários