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__/