Polecenia do instalacji programu Python Install Manager bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez winget
PowerShell
winget install --id Python.PythonInstallManager -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.PythonInstallManager -e --silentwinget uninstall --id Python.PythonInstallManager -e --silentWedług instalatora
64-bit · MSIX
Cicha instalacja
Add-AppxPackage -Path python-manager-26.4.msixOdinstalowanie
Get-AppxPackage -Name PythonSoftwareFoundation.PythonManager | Remove-AppxPackage- Folder instalacji
- %ProgramFiles%\WindowsApps\PythonSoftwareFoundation.PythonManager_25.1.240.0_x64__3847v3x7pw1km
64-bit · MSI · Wszyscy użytkownicy
Cicha instalacja
msiexec /i python-manager-26.4.msi /qn /norestartZapis dziennika
msiexec /i python-manager-26.4.msi /qn /norestart /l*v "%TEMP%\python-install-manager-install.log"Odinstalowanie
msiexec /x {F3923B44-01DC-4ED3-8C2A-171B051A2D98} /qn /norestart- Kod produktu MSI
- {F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- UpgradeCode
- {E8B0C18E-35FD-4D63-BDEF-CE8B9E322FE5}
- Folder instalacji
- %ProgramFiles%\PyManager
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
install-python-install-manager.ps1
$url = 'https://www.python.org/ftp/python/pymanager/python-manager-26.4.msix'
$sha256 = '002CFE4F4B63E322E9C8170CEA4D7D97E3E2D18246887325F969BB75F482F4DC'
$file = Join-Path $env:TEMP 'python-manager-26.4.msix'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file install-python-install-manager.ps1
$url = 'https://www.python.org/ftp/python/pymanager/python-manager-26.4.msi'
$sha256 = 'AB8C6B8A484525B000E8E9453FDE0ED6CDEF762DD433622725696A8E1EF2DF4E'
$file = Join-Path $env:TEMP 'python-manager-26.4.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait