environnement python
17 Sep. 2006
- Auteur : Hyacinthe MENIET
- Responsable : TrustRobot
- Score ( voter ) :



- Connexes : Même auteur | Même responsable | Historique
- python : interpreteur de scripts python
- wxpyton : outils pour creer des interfaces praphiques GTK en langage python
1. Python :
Telechargez le package source Python le plus à jour ici. Installez le par :
# tar xzfv Python-x.x.x.tgz
# cd Python-x.x.x
# ./configure --prefix=/usr
# make
# make install
Attention : utilisateur d'une Red Hat 9, vous devez remplacer la ligne ./configure --prefix=/usr par celle-ci :
# ./configure --enable-unicode=ucs4 --prefix=/usr
Voilà, votre interpréteur Python est installé.
2. WxPython :
Téléchargez le package WxPython là. Installez le par :
# tar xzfv wxPythonSrc-x.x.x.x.tar.gz
# cd wxPythonSrc-x.x.x.x
# export WXPREF=/usr/lib/wxPython
# mkdir build
# cd build
# ../configure --with-gtk \
--prefix=$WXPREF \
--enable-rpath=$WXPREF/lib \
--with-opengl \
--enable-geometry \
--enable-optimise \
--enable-debug_flag
# make
# cd ../locale
# make allmo
# cd ../build
# make install
# cd ../wxPython
# python setup.py IN_CVS_TREE=1 WX_CONFIG=$WXPREF/bin/wx-config build install
wxpython est maintenant opérationnel.
Votre interpréteur python est maintenant installé et prêt à faire tourner tous vos programmes python.