Pages : 1
#1 Le 08/03/2008, à 12:05
- raphael008
Executer un script python
Bonjour!
J'ai un petit problème sur Kubuntu 7.10 : Je n'arrive pas à exécuter mes scripts python. Quand je double-clique sur mon fichier, il ouvre l'éditeur de texte mais il n'exécute pas mon script.:(
Comment je peux faire?
merci
raphael
#2 Le 08/03/2008, à 12:21
- Mukri
Re : Executer un script python
normal amigo
pour executer ton script tu a 2 solution
imagine ton fichier s'apelle script.py
tu tape en console
python script.py
ou alors tu fait un chmod 777 sur ton script.py
chmod 777 script.py
est pour l'executer tu tape
./script.py
préfere la premiere solution
voila voilou
Hors ligne
#3 Le 08/03/2008, à 12:33
- raphael08
Re : Executer un script python
ok merci Mukri, ça marche
a+
raphael
Hors ligne
#4 Le 08/03/2008, à 13:27
- Mukri
Re : Executer un script python
est tu fait pareil pour nimporte quelle langage oriente objet
perl
perl script.pl
php
php script.php
Hors ligne
#5 Le 08/03/2008, à 13:30
- raphael08
Re : Executer un script python
Ok, merci beaucoup Mukri!;);)
raphael
Hors ligne
#6 Le 09/03/2008, à 17:25
- Linkid
Re : Executer un script python
Ou sinon tu ouvres ton fichier avec l'IDLE python...
Ubuntu 9.10 : "The Karmic Koala"... Un monde de rêve rempli d'animaux !
Notre liberté ne se limite pas à Windows...
Hors ligne
#7 Le 09/03/2008, à 19:09
- Mukri
Re : Executer un script python
:lol::lol::lol::lol::lol:
Dernière modification par Mukri (Le 09/03/2008, à 19:09)
Hors ligne
Pages : 1