Je fais comment pour executer mon programme ?

Résolu/Fermé
Le_reblochon_gamer Messages postés 87 Date d'inscription samedi 14 décembre 2019 Statut Membre Dernière intervention 26 janvier 2023 - 17 janv. 2020 à 19:00
 trifou - 17 janv. 2020 à 20:39
Bonjour, j'utilise Ubuntu 19.10, PyCharm comme IDE, et je voudrais programer en Python sur mon PC mais il ne trouve pas mon interpréteur alors que j'en ai un (python3), la preuve :
le_reblechon_gamer@lereblechongamer-20-r101nf:~$ python3
Python 3.7.5 (default, Nov 20 2019, 09:21:52)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Voici mon code :

Pourquoi il ne trouve pas mon interpréteur, et comment corriger ce problème ?

1 réponse

Bonsoir,

Je ne connais pas pycharm, mais dans le champ interpreter, tu devrais pouvoir ; je pense ; définir le chemin vers l'exécutable python, sur ton système, ce doit être
/usr/bin/python3
, à vérifier en tapant
whereis python3 
dans ton terminal.
0