I comandi per installare Python Install Manager senza richieste, rimuoverlo e rilevarlo dagli strumenti di distribuzione. Un comando compare solo quando è certo: preso dal manifest o dal valore predefinito documentato della tecnologia di installazione.
Guida correlata: Installazione silenziosa: MSI, NSIS, Inno Setup · Disinstallare programmi dal registro o con PowerShell
Con 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 --silentPer installer
64 bit · MSIX
Installazione silenziosa
Add-AppxPackage -Path python-manager-26.4.msixDisinstallazione
Get-AppxPackage -Name PythonSoftwareFoundation.PythonManager | Remove-AppxPackage- Cartella di installazione
- %ProgramFiles%\WindowsApps\PythonSoftwareFoundation.PythonManager_25.1.240.0_x64__3847v3x7pw1km
64 bit · MSI · Tutti gli utenti
Installazione silenziosa
msiexec /i python-manager-26.4.msi /qn /norestartScrivi un log
msiexec /i python-manager-26.4.msi /qn /norestart /l*v "%TEMP%\python-install-manager-install.log"Disinstallazione
msiexec /x {F3923B44-01DC-4ED3-8C2A-171B051A2D98} /qn /norestart- Codice prodotto MSI
- {F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- Chiave di registro di disinstallazione
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- UpgradeCode
- {E8B0C18E-35FD-4D63-BDEF-CE8B9E322FE5}
- Cartella di installazione
- %ProgramFiles%\PyManager
PowerShell: scarica, verifica, installa
Scarica il file ufficiale, ne verifica l’hash SHA256 e lo installa in modo silenzioso.
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