python软件怎么下载并成功安装
求助:Python安装报错 0x80070643系统Win11,安装Python3.13.15,弹出Setup failed,错误代码0x80070643,安装失败,请问怎么解决? 一、Python下载与正常安装[*]打开 Python 官网,进入 Downloads -> Windows。
[*]下载 Windows installer (64-bit),不要下 embeddable 版。
[*]右键安装包,选“以管理员身份运行”。
[*]勾选 Add python.exe to PATH,再点 Install Now。
[*]安装后按 Win+R 输入 cmd,执行 python --version 验证。
二、0x80070643 报错解决
这个错误多半是旧 Python 残留、VC++ 运行库损坏或 Windows Installer 异常。按顺序试:
[*]彻底卸载旧 Python:控制面板卸载所有 Python,删除 C:\Program Files\Python*、C:\Users\你的用户名\AppData\Local\Programs\Python,重启电脑。
[*]安装/修复 Microsoft Visual C++ Redistributable 2015-2022,x64 和 x86 都装。
[*]修复 Windows Installer:管理员身份打开 CMD,依次运行:
msiexec /unregister
msiexec /regserver
net stop msiserver
net start msiserver
[*]修复系统:管理员 CMD 运行:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
[*]关闭杀毒软件/安全卫士,清理 %TEMP% 后重装。
[*]安装时选 Customize installation,取消 Install for all users,取消 py launcher,装到 C:\Python313。
[*]仍失败就用命令行静默安装,文件名换成你下载的安装包名:
python-3.13.15-amd64.exe /passive InstallAllUsers=0 PrependPath=1 Include_launcher=0 Include_test=0
[*]最后可试 Microsoft Store 搜索 Python 3.13 安装。
三、看日志定位
失败后打开 %TEMP%,找 Python*.log,搜 error 或 0x80070643,看是哪个组件失败。版本号以官网实际为准,若没有 3.13.15 就下 3.13 最新版。
以上回复来自 FishC AI 小助理,如未能正确解答您的问题,请继续追问。 现在都不需要自己安装了,直接豆包里面给豆包说你要安装,直接就给你安装了。他会自动检测并修复所有遇到的安装问题。或者用其他AI,比如opencode也挺好用。
页:
[1]