Je fais comment pour executer mon programme ?

Résolu
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

  1. 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.