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`