Skip to content

Commit a6b4004

Browse files
committed
Improve Windows Python install guidance
1 parent e12d381 commit a6b4004

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

install-windows.ps1

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,12 +213,27 @@ function Main {
213213
Log 'Checking Python 3.11+'
214214
$python = Find-Python
215215
if (-not $python) {
216+
$winget = Get-Command 'winget' -ErrorAction SilentlyContinue |
217+
Select-Object -ExpandProperty Source -ErrorAction SilentlyContinue
218+
if ($winget) {
219+
Die @"
220+
Python $MinMajor.$MinMinor+ was not found.
221+
222+
Install Python by running:
223+
224+
winget install Python.Python.3.14
225+
226+
Then open a new terminal window and run this installer again.
227+
"@
228+
}
229+
216230
Die @"
217231
Python $MinMajor.$MinMinor+ was not found.
218232
219-
Install Python from https://www.python.org/downloads/windows/
220-
Make sure to check "Add python.exe to PATH" during installation,
221-
then run this installer again.
233+
Install Python from:
234+
https://www.python.org/downloads/windows/
235+
236+
Then open a new terminal window and run this installer again.
222237
"@
223238
}
224239
Write-Host "Using Python: $python"

0 commit comments

Comments
 (0)