m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/python.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-11-25 21:19:07 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-11-25 21:19:07 +0100
commit30d042cec2c5ff85f859e3e6564be176479a9cfb (patch)
tree11b4c208363353f08391602e6298aa241882a08e /python.md
parent2d91bf16ed944c592820295b34d51ee45733f1b6 (diff)
Add python sheet with venv stuff
Diffstat (limited to 'python.md')
-rw-r--r--python.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/python.md b/python.md
new file mode 100644
index 0000000..e89d842
--- /dev/null
+++ b/python.md
@@ -0,0 +1,21 @@
+# Python
+
+## Virtual Envs
+
+Create:
+
+ python3 -m venv <env name>
+
+Run:
+
+ source <env name>/bin/activate
+
+### requirements.txt
+
+Create based on currently installed packages:
+
+ pip freeze > requirements.txt
+
+Install from requirements:
+
+ python -m pip install -r requirements.txt