From 074659a2dfedb79649d4eec6d77b9f63e990f83a Mon Sep 17 00:00:00 2001 From: vincent Date: Fri, 26 Apr 2019 09:42:41 +0200 Subject: [PATCH] Ajouter 'python.md' --- python.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python.md diff --git a/python.md b/python.md new file mode 100644 index 0000000..9ea1e20 --- /dev/null +++ b/python.md @@ -0,0 +1,8 @@ +# python + +## Virtual env +- create virtual env: `python3 -m venv /path` +- enter in virtual env: `source env/bin/activate` +- leave venv: `deactivate` +- list all installed package in file: `pip freeze > requirement.txt` +- install package list in file: `pip install -r requirement.txt`