Hi yanyu,
I'm Ramesh, here to answer your query at the Microsoft Community.
Do you have an older version of Python installed on the computer? Please let me know.
Also, try the latest version 3.12.4 from here:
如题,截取所有报错的日志如下:
[1B54:303C][2024-06-09T09:22:56]e000: Error 0x80070643: Failed to run maintanance mode for MSI package.
[1B54:303C][2024-06-09T09:22:56]e000: Error 0x80070643: Failed to configure per-user MSI package.
[1B54:303C][2024-06-09T09:22:56]i319: Applied execute package: tcltk_JustForMe, result: 0x80070643, restart: None
[1B54:303C][2024-06-09T09:22:56]e000: Error 0x80070643: Failed to execute MSI package.
[1B54:303C][2024-06-09T09:22:56]i301: Applying rollback package: tcltk_JustForMe, action: Modify, path: C:\Users\zhuqingyun\AppData\Local\Package Cache{6108D417-E511-4AFC-A24D-7CEE1DC9D3EE}v3.10.11150.0\tcltk.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" TARGETDIR="D:\programming\python310" OPTIONALFEATURESREGISTRYKEY="Software\Python\PythonCore\3.10\InstalledFeatures" REMOVE="AssociateFiles"'
[1B54:303C][2024-06-09T09:22:56]e000: Error 0x80070643: Failed to run maintanance mode for MSI package.
[1B54:303C][2024-06-09T09:22:56]e000: Error 0x80070643: Failed to configure per-user MSI package.
根据另一个回复,尝试管理员身份在cmd运行了下面这串代码,然后界面一直卡在62.3%进度。
C:\Windows\System32>Dism /Online /Cleanup-Image /RestoreHealth
锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。
Hi yanyu,
I'm Ramesh, here to answer your query at the Microsoft Community.
Do you have an older version of Python installed on the computer? Please let me know.
Also, try the latest version 3.12.4 from here:
问题已经解决。
的确因为之前安装过同版本的python,我猜想是因为之前更改了文件存放的路径,在删除时导致没能删干净。而产生了许多问题。
在使用Microsoft的 “疑难杂症解决”工具将未删除干净的部分删除后,问题得到了解决。
谢谢您对问题的关注的回复!