Skip to content

Instantly share code, notes, and snippets.

@staticdnweb
Last active February 10, 2025 13:20
Show Gist options
  • Save staticdnweb/394681ded1586622a74734c55ea599bb to your computer and use it in GitHub Desktop.
Save staticdnweb/394681ded1586622a74734c55ea599bb to your computer and use it in GitHub Desktop.
python windows server

Powershell

# download
Invoke-WebRequest -Uri "https://www.python.org/ftp/python/3.7.4/python-3.7.4-amd64.exe" -OutFile "python-3.7.4-amd64.exe"

# install quiet
.\python-3.7.4-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0

# reload env
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")

install extra vc_redist.x64.exe https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 => https://aka.ms/vs/17/release/vc_redist.x64.exe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment