Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PythonEmbed4Win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ if ("" -ne "${env:PROCESSOR_ARCHITECTURE}") {

New-Variable -Name URI_GETPIP -Option ReadOnly -Force -Value ([URI] "https://bootstrap.pypa.io/get-pip.py")
New-Variable -Name URI_GETPIP36 -Option ReadOnly -Force -Value ([URI] "https://bootstrap.pypa.io/pip/3.6/get-pip.py")
New-Variable -Name URI_GETPIP39 -Option ReadOnly -Force -Value ([URI] "https://bootstrap.pypa.io/pip/3.9/get-pip.py")
New-Variable -Name URI_PYTHON_VERSIONS -Option ReadOnly -Force -Value ([URI] "https://www.python.org/ftp/python")

function URI-Combine
Expand Down Expand Up @@ -1165,6 +1166,9 @@ Also, this installation cannot create new virtual environments.
if ($ver -lt [System.Version]"3.7") {
$uri_getpip1 = $URI_GETPIP36
}
elseif ($ver -lt [System.Version]"3.10") {
$uri_getpip1 = $URI_GETPIP39
}
Download $uri_getpip1 $path_getpip
& $python_exe -O $path_getpip --no-warn-script-location
if ($LastExitCode -ne 0) {
Expand Down