Skip to content

Commit f7687d3

Browse files
Update CONTRIBUTING.md to include commands for Windows (#17142)
Add command about how to activate virtual environment on Windows.
1 parent 1072c78 commit f7687d3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,23 @@ cd mypy
3030
#### (3) Create then activate a virtual environment
3131

3232
```bash
33-
# On Windows, the commands may be slightly different. For more details, see
34-
# https://docs.python.org/3/library/venv.html#creating-virtual-environments
3533
python3 -m venv venv
3634
source venv/bin/activate
3735
```
3836

37+
```bash
38+
# For Windows use
39+
python -m venv venv
40+
. venv/Scripts/activate
41+
42+
# For more details, see https://docs.python.org/3/library/venv.html#creating-virtual-environments
43+
```
44+
3945
#### (4) Install the test requirements and the project
4046

4147
```bash
42-
python3 -m pip install -r test-requirements.txt
43-
python3 -m pip install -e .
48+
python -m pip install -r test-requirements.txt
49+
python -m pip install -e .
4450
hash -r # This resets shell PATH cache, not necessary on Windows
4551
```
4652

0 commit comments

Comments
 (0)