问题描述
当我尝试在Windows Server中安装Python 3.8时,收到以下错误消息:
下面的日志说明了与密钥注册表相关的内容,我不确定,但这与在密钥注册表中写入的权限有关。我该如何解决?也许将Python版本更改为3.7?
此行[47C8:33EC][2020-09-15T16:43:00]e000: Error 0x80070005: Failed to write run key value.
是下面日志中的要点。
[47C8:33EC][2020-09-15T16:42:59]i300: Apply begin
[47C8:33EC][2020-09-15T16:42:59]i010: Launching elevated engine process.
[47C8:33EC][2020-09-15T16:43:00]i011: Launched elevated engine process.
[47C8:33EC][2020-09-15T16:43:00]i012: Connected to elevated engine.
[3D08:1498][2020-09-15T16:43:00]i358: Pausing automatic updates.
[3D08:1498][2020-09-15T16:43:00]i359: Paused automatic updates.
[3D08:1498][2020-09-15T16:43:00]i360: Creating a system restore point.
[3D08:1498][2020-09-15T16:43:00]i362: System restore disabled,system restore point not created.
[47C8:33EC][2020-09-15T16:43:00]i370: Session begin,registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{06afee40-d856-48c5-8ff2-bd1c3655edca},options: 0x4,disable resume: No
[47C8:33EC][2020-09-15T16:43:00]i320: Registering bundle dependency provider: cpython-3.8,version: 3.8.150.0
[47C8:33EC][2020-09-15T16:43:00]i371: Updating session,resume: Active,restart initiated: No,disable resume: No
[47C8:33EC][2020-09-15T16:43:00]e000: Error 0x80070005: Failed to write run key value.
[47C8:33EC][2020-09-15T16:43:00]e000: Error 0x80070005: Failed to update resume mode.
[47C8:33EC][2020-09-15T16:43:00]e000: Error 0x80070005: Failed to begin registration session.
[47C8:33EC][2020-09-15T16:43:00]e000: Error 0x80070005: Failed to register bundle.
[47C8:33EC][2020-09-15T16:43:00]i399: Apply complete,result: 0x80070005,restart: None,ba requested restart: No
解决方法
您使用的是正式的Python发行版吗?
第三方分发可以具有不同的注册密钥,Windows可能不会检查这些密钥。
您可以在此处了解更多信息: