Pages : 1
#1 Le 09/03/2015, à 11:08
- Aïeul
[Résolu] Lancer Python 3
Bonjour,
Je souhaite mettre à disposition d'un étudiant de la mienne famille Python 3 sur mon ordi. Je l'ai installé mais je ne parviens pas à le lancer dans le terminal, j'ai tenté plusieurs commandes sans résultat. Que faire ?
Dernière modification par Aïeul (Le 09/03/2015, à 18:35)
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
#2 Le 09/03/2015, à 12:12
- pingouinux
Re : [Résolu] Lancer Python 3
Bonjour,
Normalement, c'est
python3
Sinon, donne le résultat de
ls -ld /usr/bin/python*
Hors ligne
#3 Le 09/03/2015, à 13:28
- Aïeul
Re : [Résolu] Lancer Python 3
Bonjour,
Normalement, c'estpython3
Sinon, donne le résultat de
ls -ld /usr/bin/python*
Un grand merci pour la rapidité de ta réponse. La commande python3 est sans effet et je te communique le résultat obtenu.
coud@coud-All-Series ~ $ ls -ld /usr/bin/python*
lrwxrwxrwx 1 root root 9 déc. 6 09:00 /usr/bin/python -> python2.7
lrwxrwxrwx 1 root root 9 déc. 6 09:00 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3176896 mars 23 2014 /usr/bin/python2.7
lrwxrwxrwx 1 root root 9 déc. 6 09:00 /usr/bin/python3 -> python3.4
-rwxr-xr-x 1 root root 3802224 avril 11 2014 /usr/bin/python3.4
-rwxr-xr-x 1 root root 3802224 avril 11 2014 /usr/bin/python3.4m
lrwxrwxrwx 1 root root 10 déc. 6 09:00 /usr/bin/python3m -> python3.4m
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
#4 Le 09/03/2015, à 15:01
- pingouinux
Re : [Résolu] Lancer Python 3
La commande python3 est sans effet
Quel est le résultat ? As-tu un message d'erreur ?
Quand tu tapes python dans un terminal, est-ce qu'il se passe quelque chose ?
Quel est le retour de
echo $PATH
Hors ligne
#5 Le 09/03/2015, à 17:03
- Aïeul
Re : [Résolu] Lancer Python 3
Quand je tape "python" j'ai le message suivant :
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
Avec echo $PATH, j'ai le message suivant :
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Avec mes remerciements pour ton aide.
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
#6 Le 09/03/2015, à 17:10
- pingouinux
Re : [Résolu] Lancer Python 3
Et quand tu tapes python3, quel est le retour ?
Tu peux aussi donner le retour de
type python3
Hors ligne
#7 Le 09/03/2015, à 17:32
- Aïeul
Re : [Résolu] Lancer Python 3
Lorsque je tape python3 j'ai le retour suivant :
Python 3.4.0 (default, Apr 11 2014, 13:05:18)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Le retour de type python3 est :
python3 est /usr/bin/python3
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
#8 Le 09/03/2015, à 17:39
- pingouinux
Re : [Résolu] Lancer Python 3
Alors c'est bon, tu es dans une session interactive. Qu'est-ce que tu voudrais avoir ?
Hors ligne
#9 Le 09/03/2015, à 17:46
- Aïeul
Re : [Résolu] Lancer Python 3
Je voulais mettre Python 3 à disposition du jeune, n'ayant jamais approché de près ou de loin les langages de programmation, je pensais arriver sur une application !!!! Je pourrais ce soir lui dire que tout est bon et qu'il est dans une session interactive. Il va probablement rire de mon indigence. Mille fois merci pour ta patience et ton efficacité.
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
#10 Le 09/03/2015, à 17:54
- pingouinux
Re : [Résolu] Lancer Python 3
Si c'est pour lancer un script
python3 le_script.py
ou, si le script est exécutable et que sa première ligne est #!/usr/bin/python3
/le_chemin.../le_script.py
Hors ligne
#11 Le 09/03/2015, à 18:35
- Aïeul
Re : [Résolu] Lancer Python 3
Encore mille fois merci pour cette aide précieuse.
Distribution : Ubuntu 19.10 Mate 64 bit
Processeur : Intel(R)Core (TM) is-4430 CPU @ 3,00 GHZ
Carte graphique : Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)
Mémoire :3638 MIB / Type d'OS :64 bits / Disque : 500 Go SEAGATE Serial ATA 600 / Firefox : 29.0
Hors ligne
Pages : 1