Installer pygame pour python3.x
Hey, j'aimerai installer pygame pour pouvoir l'utiliser avec python 3.1. Je sais que toutes les librairies ne sont pas fonctionnelles mais je tiens tout de même à essayer sur cette version. Le problème, c'est que je n'arrive pas à l'installer :cry: .
ps: je suis sous Ubuntu 10.10
J'ai suivit les instructions suivantes:
Code:
sudo apt-get install libsmpeg-dev
Code:
sudo apt-get install libpng3
Code:
sudo apt-get install libsdl1.2debian-all libsdl1.2-dev libsdl-image1.2 libsdl-image1.2-dev libsdl-ttf2.0-0 libsdl-ttf2.0-dev
Code:
sudo apt-get install libportmidi0 libportmidi-dev
Code:
sudo apt-get install libsdl-image1.2-dev libsdl-image1.2
Mais quand je fais:
Code:
python3.1 setup.py build
j'ai ces erreurs :
Code:
1 2 3 4
| In file included from src/imageext.c:47:
src/pygame.h:75: fatal error: Python.h: Aucun fichier ou dossier de ce type
compilation terminated.
error: command 'gcc' failed with exit status 1 |
Sachant que j'ai suivi les instructions plus haut et que j'ai bien tout ce qu'il faut (enfin, tout est "found"):
Code:
1 2 3 4 5 6 7 8 9 10 11
| Hunting dependencies...
SDL : found 1.2.14
FONT : found
IMAGE : found
MIXER : found
SMPEG : found 0.4.5
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: found
PORTTIME: found |
J'ai aussi installé GCC:
Code:
apt-get install gcc
Mais l'erreur reste la même.
A+