Les commandes pour installer Python 3.10 sans aucune question, le désinstaller et le détecter depuis un outil de déploiement. Une commande n’apparaît que si elle est certaine : issue du manifeste ou valeur par défaut documentée de la technologie d’installation.
Guide associé: Installation silencieuse : MSI, NSIS, Inno Setup · Désinstaller un programme via le registre ou PowerShell
Avec winget
winget install --id Python.Python.3.10 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Python.3.10 -e --silentwinget uninstall --id Python.Python.3.10 -e --silentPar installateur
64 bits · EXE (WiX Burn) · Utilisateur actuel
python-3.10.11-amd64.exe /quiet /norestartmsiexec /x {A10FBB63-03FF-4B8C-A176-F5FD355F715B} /qn /norestart- Code produit MSI
- {a10fbb63-03ff-4b8c-a176-f5fd355f715b}
- Clé de registre de désinstallation
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a10fbb63-03ff-4b8c-a176-f5fd355f715b}
- UpgradeCode
- {E3BAA187-CE22-5D2A-92E4-3290DEC0FCAB}
- DisplayVersion
- 3.10.11150.0
64 bits · EXE (WiX Burn) · Tous les utilisateurs
python-3.10.11-amd64.exe /quiet /norestartmsiexec /x {A10FBB63-03FF-4B8C-A176-F5FD355F715B} /qn /norestart- Code produit MSI
- {a10fbb63-03ff-4b8c-a176-f5fd355f715b}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{a10fbb63-03ff-4b8c-a176-f5fd355f715b}
- UpgradeCode
- {E3BAA187-CE22-5D2A-92E4-3290DEC0FCAB}
- DisplayVersion
- 3.10.11150.0
32 bits · EXE (WiX Burn) · Utilisateur actuel
python-3.10.11.exe /quiet /norestartmsiexec /x {24F90C01-2C0A-45DD-8619-2D1B68EB3D2B} /qn /norestart- Code produit MSI
- {24f90c01-2c0a-45dd-8619-2d1b68eb3d2b}
- Clé de registre de désinstallation
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{24f90c01-2c0a-45dd-8619-2d1b68eb3d2b}
- UpgradeCode
- {474D137A-11E9-5F9D-9D62-DF035A3DB588}
- DisplayVersion
- 3.10.11150.0
32 bits · EXE (WiX Burn) · Tous les utilisateurs
python-3.10.11.exe /quiet /norestartmsiexec /x {24F90C01-2C0A-45DD-8619-2D1B68EB3D2B} /qn /norestart- Code produit MSI
- {24f90c01-2c0a-45dd-8619-2d1b68eb3d2b}
- Clé de registre de désinstallation
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{24f90c01-2c0a-45dd-8619-2d1b68eb3d2b}
- UpgradeCode
- {474D137A-11E9-5F9D-9D62-DF035A3DB588}
- DisplayVersion
- 3.10.11150.0
PowerShell : télécharger, vérifier, installer
Télécharge le fichier officiel, vérifie son empreinte SHA256 et l’installe en mode silencieux.
$url = 'https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe'
$sha256 = 'D8DEDE5005564B408BA50317108B765ED9C3C510342A598F9FD42681CBE0648B'
$file = Join-Path $env:TEMP 'python-3.10.11-amd64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait $url = 'https://www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe'
$sha256 = 'D8DEDE5005564B408BA50317108B765ED9C3C510342A598F9FD42681CBE0648B'
$file = Join-Path $env:TEMP 'python-3.10.11-amd64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait $url = 'https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe'
$sha256 = 'BD115A575E86E61CEA9136C5A2C47E090BA484DC2DEE8B51A34111BB094266D5'
$file = Join-Path $env:TEMP 'python-3.10.11.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait $url = 'https://www.python.org/ftp/python/3.10.11/python-3.10.11.exe'
$sha256 = 'BD115A575E86E61CEA9136C5A2C47E090BA484DC2DEE8B51A34111BB094266D5'
$file = Join-Path $env:TEMP 'python-3.10.11.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/quiet /norestart' -Wait