m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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