lancer_correctement_python
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édenteProchaine révisionLes deux révisions suivantes | ||
lancer_correctement_python [2020/12/03 13:33] – [Lancer correctement python] serge | lancer_correctement_python [2021/02/24 17:54] – [Ce qu'il faut retenir par cœur] serge | ||
---|---|---|---|
Ligne 30: | Ligne 30: | ||
* **[[https:// | * **[[https:// | ||
=====Ce qu'il faut retenir par cœur===== | =====Ce qu'il faut retenir par cœur===== | ||
+ | |||
+ | ====Installer un package==== | ||
python3.7 -m pip install black --user | python3.7 -m pip install black --user | ||
- | python3.7 -m black mon_fichier.py | + | |
+ | Pour lancer un script: | ||
+ | |||
+ | | ||
+ | |||
+ | ====Mettre à jour pip==== | ||
+ | |||
+ | python3.7 -m pip install --upgrade pip | ||
+ | |||
+ | WARNING: The scripts pip, pip3 and pip3.7 are installed in '/ | ||
+ | Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location. | ||
+ | |||
+ | Ajouter au fichier ~/.bashrc | ||
+ | # Pour pip, pip3 and pip3.7 | ||
+ | export PYTHONPATH=" | ||
+ | | ||
=====VirtualEnv===== | =====VirtualEnv===== | ||