-
SUBLIMETEXT > exécuter du Python3
Aller dans :
Tools>Build System>New Build SystemPuis, taper :
{ "shell_cmd":"chemin/vers/python3 ${file}" "selector": }
{ "shell_cmd": "/usr/bin/env python3 ${file}", "selector": "source.python", "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "working_dir": "${file_path}" }
On enregistre avec comme nom :
Python3.sublime-buildOn vérifie en tapant dans un nouveau fichier :
import sys print(sys.version)
Puis, on fait
Tools>Build System>Python3Puis [
CTRL] + [B] pour ensuite lancer le script.Exemple de chemins
LINUX
"shell_cmd": "/usr/bin/python3 ${file}",
WINDOWS
"shell_cmd": "C:\\Users\\7304868z\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe ${file}",