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
Write-Host "pip.exe not found, skipping pip3 shim creation."
89
+
}
90
+
91
+
# Refresh to pick up the shims.
76
92
refreshenv
77
-
python3 --version
78
-
pip3 --version
93
+
94
+
# Check python3 version only if python3 shim was created
95
+
if ($python3Exists) {
96
+
try {
97
+
python3 --version
98
+
} catch {
99
+
Write-Host "python3 not found or not working. Please check your installation."
100
+
}
101
+
} else {
102
+
Write-Host "python3 not available."
103
+
}
104
+
105
+
# Check pip3 version only if pip3 shim was created
106
+
if ($pipExists) {
107
+
try {
108
+
pip3 --version
109
+
} catch {
110
+
Write-Host "pip3 not found or not working. Please check your installation."
111
+
}
112
+
} else {
113
+
Write-Host "pip3 not available."
114
+
}
79
115
```
80
116
81
117
### Enable symlink creation
@@ -87,23 +123,25 @@ If you're not an administrator user, enable this by following these steps:
87
123
* Go to Local Policies → User Rights Assignment.
88
124
* Find "Create symbolic links".
89
125
* Add your username to the list.
90
-
*Sign out and back in.
126
+
*Reboot.
91
127
92
128
### Enable long path support (up to ~32,767 characters)
93
129
94
130
Some acceptance tests fail if this is not enabled because their paths
95
131
exceed the default maximum total length of 260 characters.
96
132
97
-
*Run "Edit group policy".
98
-
* Go to Local Computer Policy → Computer Configuration → Administrative Templates → System → Filesystem → Enable Win32 long paths.
133
+
*Press Win+R, type `gpedit.msc`, press Enter.
134
+
* Go to Computer Configuration → Administrative Templates → System → Filesystem → Enable Win32 long paths.
99
135
* Enable the setting.
100
136
* Reboot.
101
137
138
+
### Disable Microsoft Defender
102
139
140
+
The tests frequently create and remove temporary directories.
141
+
Sometimes, Microsoft Defender locks a file (such as an executable) during deletion,
142
+
which can cause errors and test failures.
103
143
104
-
105
-
⚠️ Last resort: Group Policy full disable
106
-
107
-
If you’re on Windows Pro/Enterprise, and you’ve disabled Tamper Protection, you can permanently disable Defender via Group Policy Editor (gpedit.msc) →
108
-
Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus → Turn off Microsoft Defender Antivirus → Enabled.
109
-
Reboot afterwards.
144
+
* Press Win+R, type `gpedit.msc`, press Enter.
145
+
* Go to Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus → Turn off Microsoft Defender Antivirus.
0 commit comments