You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20-1Lines changed: 20 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,26 @@ Thank you for your interest in contributing to the Python Environments extension
17
17
cd vscode-python-environments
18
18
```
19
19
20
-
2.**Create a Python virtual environment**
20
+
2.**Create a Python virtual environment**
21
+
22
+
A Python virtual environment is important for development because it isolates the Python dependencies used for testing and development from your system Python installation. This ensures reproducible builds and prevents conflicts with other projects.
23
+
24
+
```bash
25
+
# Create the virtual environment
26
+
python -m venv .venv
27
+
28
+
# Activate it (Linux/macOS)
29
+
source .venv/bin/activate
30
+
31
+
# Activate it (Windows - Command Prompt)
32
+
.venv\Scripts\activate.bat
33
+
34
+
# Activate it (Windows - PowerShell)
35
+
.venv\Scripts\Activate.ps1
36
+
```
37
+
38
+
> **Note:** Keep the virtual environment activated while developing. The extension uses this environment for running Python-related tests and for environment discovery during development.
0 commit comments