用于免交互安装Python 3.14、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id Python.Python.3.14 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Python.Python.3.14 -e --silentwinget uninstall --id Python.Python.3.14 -e --silent按安装包
64位 · EXE(WiX Burn) · 仅当前用户
静默安装
python-3.14.10-amd64.exe /quiet /norestart卸载
msiexec /x {2E2E5545-FFDF-4F71-B419-3BAE183E81B7} /qn /norestart- MSI产品代码
- {2e2e5545-ffdf-4f71-b419-3bae183e81b7}
- 卸载注册表项
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2e2e5545-ffdf-4f71-b419-3bae183e81b7}
- UpgradeCode
- {AF37ADBF-A448-569B-983A-EE8E6DEC0484}
- DisplayVersion
- 3.14.10150.0
64位 · EXE(WiX Burn) · 所有用户
静默安装
python-3.14.10-amd64.exe /quiet /norestart卸载
msiexec /x {2E2E5545-FFDF-4F71-B419-3BAE183E81B7} /qn /norestart- MSI产品代码
- {2e2e5545-ffdf-4f71-b419-3bae183e81b7}
- 卸载注册表项
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2e2e5545-ffdf-4f71-b419-3bae183e81b7}
- UpgradeCode
- {AF37ADBF-A448-569B-983A-EE8E6DEC0484}
- DisplayVersion
- 3.14.10150.0
64位 · ZIP
无需安装(绿色版)
ARM64 · EXE(WiX Burn) · 仅当前用户
静默安装
python-3.14.10-arm64.exe /quiet /norestart卸载
msiexec /x {D092FE6D-22D4-44A8-87DB-F6FE80C7A5EC} /qn /norestart- MSI产品代码
- {d092fe6d-22d4-44a8-87db-f6fe80c7a5ec}
- 卸载注册表项
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{d092fe6d-22d4-44a8-87db-f6fe80c7a5ec}
- UpgradeCode
- {2F1F7880-E1EB-54EA-B512-067E199D4E88}
- DisplayVersion
- 3.14.10150.0
ARM64 · EXE(WiX Burn) · 所有用户
静默安装
python-3.14.10-arm64.exe /quiet /norestart卸载
msiexec /x {D092FE6D-22D4-44A8-87DB-F6FE80C7A5EC} /qn /norestart- MSI产品代码
- {d092fe6d-22d4-44a8-87db-f6fe80c7a5ec}
- 卸载注册表项
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{d092fe6d-22d4-44a8-87db-f6fe80c7a5ec}
- UpgradeCode
- {2F1F7880-E1EB-54EA-B512-067E199D4E88}
- DisplayVersion
- 3.14.10150.0
ARM64 · ZIP
无需安装(绿色版)
32位 · EXE(WiX Burn) · 仅当前用户
静默安装
python-3.14.10.exe /quiet /norestart卸载
msiexec /x {23B7F939-130B-45AA-8C18-7554144804BD} /qn /norestart- MSI产品代码
- {23b7f939-130b-45aa-8c18-7554144804bd}
- 卸载注册表项
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{23b7f939-130b-45aa-8c18-7554144804bd}
- UpgradeCode
- {872DB5D2-A16E-5A3C-B222-176907A65867}
- DisplayVersion
- 3.14.10150.0
32位 · EXE(WiX Burn) · 所有用户
静默安装
python-3.14.10.exe /quiet /norestart卸载
msiexec /x {23B7F939-130B-45AA-8C18-7554144804BD} /qn /norestart- MSI产品代码
- {23b7f939-130b-45aa-8c18-7554144804bd}
- 卸载注册表项
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{23b7f939-130b-45aa-8c18-7554144804bd}
- UpgradeCode
- {872DB5D2-A16E-5A3C-B222-176907A65867}
- DisplayVersion
- 3.14.10150.0
32位 · ZIP
无需安装(绿色版)
PowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10-amd64.exe'
$sha256 = '92480239264744FE0386A1BD8275786FEFA126E3129E56A68E22B52C73329965'
$file = Join-Path $env:TEMP 'python-3.14.10-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 install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10-amd64.exe'
$sha256 = '92480239264744FE0386A1BD8275786FEFA126E3129E56A68E22B52C73329965'
$file = Join-Path $env:TEMP 'python-3.14.10-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 install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10-arm64.exe'
$sha256 = '5B9547E4EDAE2F6FB2FBFEC5E26CF91B4EA191E3B07F7727D5A2C5C2CCA93ED3'
$file = Join-Path $env:TEMP 'python-3.14.10-arm64.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 install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10-arm64.exe'
$sha256 = '5B9547E4EDAE2F6FB2FBFEC5E26CF91B4EA191E3B07F7727D5A2C5C2CCA93ED3'
$file = Join-Path $env:TEMP 'python-3.14.10-arm64.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 install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10.exe'
$sha256 = 'C8F1A16DB9AFD76CA74B5F8E28EEAAD408BCA10894C9D080443BDE83DEF3ED09'
$file = Join-Path $env:TEMP 'python-3.14.10.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 install-python-3-14.ps1
$url = 'https://www.python.org/ftp/python/3.14.10/python-3.14.10.exe'
$sha256 = 'C8F1A16DB9AFD76CA74B5F8E28EEAAD408BCA10894C9D080443BDE83DEF3ED09'
$file = Join-Path $env:TEMP 'python-3.14.10.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