From 79d269ebe8c60a9d23e8f8b7d67a040f6a959aa2 Mon Sep 17 00:00:00 2001 From: Shunta Komatsu Date: Sat, 17 Feb 2024 00:28:30 +0900 Subject: [PATCH] docs: add guild to use venv --- document/02-local-env.en.md | 2 ++ document/02-local-env.ja.md | 2 ++ python/.gitignore | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 python/.gitignore diff --git a/document/02-local-env.en.md b/document/02-local-env.en.md index 08279d889..68c4e9116 100644 --- a/document/02-local-env.en.md +++ b/document/02-local-env.en.md @@ -30,6 +30,8 @@ You can install the dependencies by running the following command. ```shell $ cd python +$ python -m venv .venv +$ source .venv/bin/activate $ pip install -r requirements.txt ``` diff --git a/document/02-local-env.ja.md b/document/02-local-env.ja.md index e2949c402..6f33db209 100644 --- a/document/02-local-env.ja.md +++ b/document/02-local-env.ja.md @@ -30,6 +30,8 @@ Pythonでは、`requirements.txt`というファイルに依存しているラ ```shell $ cd python +$ python -m venv .venv +$ source .venv/bin/activate $ pip install -r requirements.txt ``` diff --git a/python/.gitignore b/python/.gitignore new file mode 100644 index 000000000..a230a78ae --- /dev/null +++ b/python/.gitignore @@ -0,0 +1,2 @@ +.venv/ +__pycache__/