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.
@codebyAbhishekBharti
Copy link

Thanks a lot

@benjaminjm112
Copy link

Hi, I get this message: [Errno 2] No such file or directory

Any idea how to fix this?

Try this code:
{ "shell_cmd": "gnome-terminal --working-directory=$file_path -- bash -c 'python3 -u \"$file\" && read -n 1 -s -r'", "working_dir": "$file_path", "selector": "source.python", "env": {"PYTHONIOENCODING": "utf-8"} }

@hacker101red
Copy link

i cant give input

@prisilya07
Copy link

thank you its work to me! but i change code a little bit. if you guys still have a problem like the code not build, you can try this code
{
"cmd": ["C:\Python\Python397\python.exe", "-u", "$file"],
"file_regex": "^[ ]File "(...?)", line ([0-9]*)",
"selector": "source.python"
}

i hope this will help you guys :)

@csirick2020
Copy link

outputerror python please which plugin do i need to install to make the console interactive

Well, you've probably figured this out already in the last 4 1/2 years lol, but in case anyone else needs an answer- The package to install is Terminus.

@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