Ordres per instal·lar Python Install Manager sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 instal·lador
64 bits · MSIX
Instal·lació silenciosa
Add-AppxPackage -Path python-manager-26.4.msixDesinstal·lar
Get-AppxPackage -Name PythonSoftwareFoundation.PythonManager | Remove-AppxPackage- Carpeta d’instal·lació
- %ProgramFiles%\WindowsApps\PythonSoftwareFoundation.PythonManager_25.1.240.0_x64__3847v3x7pw1km
64 bits · MSI · Tots els usuaris
Instal·lació silenciosa
msiexec /i python-manager-26.4.msi /qn /norestartDesar un registre
msiexec /i python-manager-26.4.msi /qn /norestart /l*v "%TEMP%\python-install-manager-install.log"Desinstal·lar
msiexec /x {F3923B44-01DC-4ED3-8C2A-171B051A2D98} /qn /norestart- Codi de producte MSI
- {F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{F3923B44-01DC-4ED3-8C2A-171B051A2D98}
- UpgradeCode
- {E8B0C18E-35FD-4D63-BDEF-CE8B9E322FE5}
- Carpeta d’instal·lació
- %ProgramFiles%\PyManager
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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