start:python:pointexe
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| start:python:pointexe [2025/04/08 14:47] – [Utilisation de PyInstaller] admin | start:python:pointexe [2025/04/08 15:04] (Version actuelle) – [le programme calculatrice.exe] admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ======== Python en exe ======== | + | ======== Python en .exe ======== |
| ====== installer pyinstaller ====== | ====== installer pyinstaller ====== | ||
| Ligne 7: | Ligne 7: | ||
| ==Windows== | ==Windows== | ||
| - | PyInstaller fonctionne sous Windows | + | PyInstaller fonctionne sous Windows |
| ==macOS== | ==macOS== | ||
| Ligne 25: | Ligne 25: | ||
| pip install pyinstaller | pip install pyinstaller | ||
| - | | ||
| ====Utilisation de PyInstaller==== | ====Utilisation de PyInstaller==== | ||
| Ligne 51: | Ligne 50: | ||
| ==== Exemple avec un fichier calculatrice.py ==== | ==== Exemple avec un fichier calculatrice.py ==== | ||
| + | |||
| + | {{ : | ||
| Dans la console windows 11 : | Dans la console windows 11 : | ||
| - | < | + | < |
| </ | </ | ||
| cd C: | cd C: | ||
| - | < | + | < |
| .\pyinstaller.exe --onefile -w calculatrice.py | .\pyinstaller.exe --onefile -w calculatrice.py | ||
| Ligne 72: | Ligne 73: | ||
| - | < | + | < |
| </ | </ | ||
| + | |||
| + | == le programme calculatrice.exe == | ||
| + | {{ : | ||
| + | |||
| + | |||
/home/chanteri/www/fablab37110/data/attic/start/python/pointexe.1744116464.txt.gz · Dernière modification : de admin
