Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.

Select an option

Save zaemiel/4fbd8b5125fda7a140be to your computer and use it in GitHub Desktop.
@locknes-collab
Copy link

Bonjour, je souhaite me former à python.Je n'y connais rien en codage.
j'ai suivi scrupuleusement ces instructions, en faisant un copier coller du code:

  1. Allez dans Sublime Text to: Outils -> Système de construction -> Nouveau système de construction
    et mettre les lignes suivantes:

{
"cmd": ["python3", "-i", "-u", "$file"],
"file_regex": "^[ ]Fichier "(...?) ", ligne ([0-9]*)",
"sélecteur": "source.python"
}

Ensuite, sauvegardez-le avec un nom significatif comme: python3.sublime-build

  1. Allez dans Outils -> Construire le système -> et vérifier python3

tester avec:

Import sys
print(sys.version)

Presse: Ctrl + b

le message de sortie est le suivant:
init_() got an unexpected keyword argument 'sélecteur'
[cmd: ['python3', '-i', '-u', '']]
[dir: C:\Users\lockn\OneDrive\Documents\travail_python]
[path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\HP\HP One Agent;C:\Program Files\dotnet;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\lockn\AppData\Local\Programs\Python\Python315\Scripts;C:\Users\lockn\AppData\Local\Programs\Python\Python315;C:\Users\lockn\AppData\Local\Programs\Python\Launcher;C:\Users\lockn\AppData\Local\Microsoft\WindowsApps;C:\Users\lockn\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\lockn.dotnet\tools]
[Finished]

Python est bien installé: version python 3.15.103.0
sublime texte: dernière version: 4 si je ne dis pas de bêtise
windows 11

merci pour votre aide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment