简体   繁体   English

尝试在 Windows 7 上安装 Python 3.8.2 时出错

[英]Error while attempting to install Python 3.8.2 on Windows 7

I am using Windows 7 64 bit and when I attempt to run the executable installer for Python 3.8.2 I get an error stating that I need to install windows service pack 1 to continue.我正在使用 Windows 7 64 位,当我尝试运行 Python 3.8.2 的可执行安装程序时,我收到一条错误消息,指出我需要安装 Z0F4137ED1502B5045D6083AA258B541C 服务包。 I already have windows service pack 1 installed on this drive, I've double checked and reinstalled it but this has not fixed the issue.我已经在这个驱动器上安装了 windows 服务包 1,我已经仔细检查并重新安装了它,但这并没有解决问题。

This is what's in the error log:这是错误日志中的内容:

[1B0C:1AAC][2020-04-10T05:16:05]i001: Burn v3.11.1.2318, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\Admin\AppData\Local\Temp{4C6C4ED2-212B-4FA8-BD34-C5891FEA4006}.cr\python-3.8.2-amd64.exe [1B0C:1AAC][2020-04-10T05:16:05]i001: 刻录 v3.11.1.2318, Windows v6.1 (Build 7601: Service Pack 1), 路径: Z0D61F8370CAD1D412F80B84D14\AppData2\57B84D14\AppData:1 \Temp{4C6C4ED2-212B-4FA8-BD34-C5891FEA4006}.cr\python-3.8.2-amd64.exe

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'ActionLikeInstalling' to value 'Installing' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“ActionLikeInstalling”初始化为“Installing”值

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'ActionLikeInstallation' to value 'Setup' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“ActionLikeInstallation”初始化为值“Setup”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'ShortVersion' to value '3.8' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“ShortVersion”初始化为值“3.8”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'ShortVersionNoDot' to value '38' [1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'WinVer' to value '3.8' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“ShortVersionNoDot”初始化为值“38”[1B0C:1AAC][2020-04-10T05:16:05]i000:初始化字符串变量'WinVer' 值 '3.8'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'WinVerNoDot' to value '38' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“WinVerNoDot”初始化为值“38”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'InstallAllUsers' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“InstallAllUsers”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'InstallLauncherAllUsers' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“InstallLauncherAllUsers”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'TargetDir' to value '' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量 'TargetDir' 初始化为值 ''

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'DefaultAllUsersTargetDir' to value '[ProgramFiles64Folder]Python[WinVerNoDot]' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“DefaultAllUsersTargetDir”初始化为值“[ProgramFiles64Folder]Python[WinVerNoDot]”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'TargetPlatform' to value 'x64' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“TargetPlatform”初始化为值“x64”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'DefaultJustForMeTargetDir' to value '[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“DefaultJustForMeTargetDir”初始化为值“[LocalAppDataFolder]Programs\Python\Python[WinVerNoDot]”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'OptionalFeaturesRegistryKey' to value 'Software\Python\PythonCore[WinVer]\InstalledFeatures' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“OptionalFeaturesRegistryKey”初始化为值“Software\Python\PythonCore[WinVer]\InstalledFeatures”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'TargetDirRegistryKey' to value 'Software\Python\PythonCore[WinVer]\InstallPath' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“TargetDirRegistryKey”初始化为值“Software\Python\PythonCore[WinVer]\InstallPath”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'DefaultCustomTargetDir' to value '' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“DefaultCustomTargetDir”初始化为值“”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'InstallAllUsersState' to value 'enabled' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“InstallAllUsersState”初始化为值“启用”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'InstallLauncherAllUsersState' to value 'enabled' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“InstallLauncherAllUsersState”初始化为值“启用”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'CustomInstallLauncherAllUsersState' to value '[InstallLauncherAllUsersState]' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“CustomInstallLauncherAllUsersState”初始化为值“[InstallLauncherAllUsersState]”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'TargetDirState' to value 'enabled' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量 'TargetDirState' 初始化为值 'enabled'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'CustomBrowseButtonState' to value 'enabled' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“CustomBrowseButtonState”初始化为值“启用”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_core' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_core”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_exe' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_exe”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_dev' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_dev”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_lib' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_lib”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_test' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_test”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_doc' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_doc”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_tools' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_tools”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_tcltk' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_tcltk”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_pip' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_pip”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_launcher' to value '-1 ' [1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'Include_launcherState' to value 'enabled' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_launcher”初始化为值“-1”[1B0C:1AAC][2020-04-10T05:16:05]i000:初始化字符串变量 'Include_launcherState' 到值 'enabled'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_symbols' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_symbols”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Include_debug' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“Include_debug”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'LauncherOnly' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“LauncherOnly”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'DetectedLauncher' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“DetectedLauncher”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'DetectedOldLauncher' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'AssociateFiles' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量 'DetectedOldLauncher' 初始化为值 '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:初始化数值变量'AssociateFiles' 值为 '1'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'Shortcuts' to value '1' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“快捷方式”初始化为值“1”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'PrependPath' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“PrependPath”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'CompileAll' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“CompileAll”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing numeric variable 'SimpleInstall' to value '0' [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“SimpleInstall”初始化为值“0”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Initializing string variable 'SimpleInstallDescription' to value '' [1B0C:1AAC][2020-04-10T05:16:05]i009: Command Line: '-burn.clean.room=C:\Users\Admin\Downloads\python-3.8.2-amd64.exe -burn.filehandle.attached=180 -burn.filehandle.self=188' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“SimpleInstallDescription”初始化为值“”[1B0C:1AAC][2020-04-10T05:16:05]i009:命令行:“ -burn.clean.room=C:\Users\Admin\Downloads\python-3.8.2-amd64.exe -burn.filehandle.attached=180 -burn.filehandle.self=188'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Admin\Downloads\python-3.8.2-amd64.exe' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“WixBundleOriginalSource”设置为值“C:\Users\Admin\Downloads\python-3.8.2-amd64.exe”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Admin\Downloads\' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“WixBundleOriginalSourceFolder”设置为值“C:\Users\Admin\Downloads\”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Admin\AppData\Local\Temp\Python 3.8.2 (64-bit)_20200410051605.log' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“WixBundleLog”设置为值“C:\Users\Admin\AppData\Local\Temp\Python 3.8.2(64 位)_20200410051605 。日志'

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting string variable 'WixBundleName' to value 'Python 3.8.2 (64-bit)' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“WixBundleName”设置为值“Python 3.8.2(64 位)”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting string variable 'WixBundleManufacturer' to value 'Python Software Foundation' [1B0C:1AAC][2020-04-10T05:16:05]i000:将字符串变量“WixBundleManufacturer”设置为值“Python Software Foundation”

[1B0C:1AAC][2020-04-10T05:16:05]i000: Setting numeric variable 'CRTInstalled' to value 1 [1B0C:1AAC][2020-04-10T05:16:05]i000:将数值变量“CRTInstalled”设置为值 1

[1B0C:1D88][2020-04-10T05:16:05]i000: Did not find C:\Users\Admin\Downloads\unattend.xml [1B0C:1D88][2020-04-10T05:16:05]i000: 没有找到 C:\Users\Admin\Downloads\unattend.xml

[1B0C:1D88][2020-04-10T05:16:05]i000: Setting string variable 'ActionLikeInstalling' to value 'Installing' [1B0C:1D88][2020-04-10T05:16:05]i000:将字符串变量 'ActionLikeInstalling' 设置为值 'Installing'

[1B0C:1D88][2020-04-10T05:16:05]i000: Setting string variable 'ActionLikeInstallation' to value 'Setup' [1B0C:1D88][2020-04-10T05:16:05]i000:将字符串变量 'ActionLikeInstallation' 设置为值 'Setup'

[1B0C:1D88][2020-04-10T05:16:05]i000: Setting version variable 'WixBundleFileVersion' to value '3.8.2150.0' [1B0C:1D88][2020-04-10T05:16:05]i000:将版本变量“WixBundleFileVersion”设置为值“3.8.2150.0”

[1B0C:1D88][2020-04-10T05:16:05]e000: Detected Windows 7 SP1 without KB2533623 [1B0C:1D88][2020-04-10T05:16:05]e000:检测到 Windows 7 SP1 没有 KB2533623

[1B0C:1D88][2020-04-10T05:16:05]e000: KB2533623 update is required to continue. [1B0C:1D88][2020-04-10T05:16:05]e000:需要更新 KB2533623 才能继续。

I have observed that versions above 3.7.2 require more that just the SP1 update.我观察到 3.7.2 以上的版本需要的不仅仅是 SP1 更新。 Looking at your log files, you will find that it requires you to install the update KB2533623 .查看您的日志文件,您会发现它需要您安装更新KB2533623 Unless you fulfill the all the prerequisites for the installation, you wouldn't be able to continue with it.除非您满足安装的所有先决条件,否则您将无法继续安装。 Install the appropriate updates as referred to by the setup/log-file and try again.安装安装程序/日志文件引用的相应更新,然后重试。

It is probable that the Service Pack 1 update might have not installed properly into the system. Service Pack 1 更新可能未正确安装到系统中。 You would need to retry installing the updates.您需要重试安装更新。 I am afraid to tell you that official free support and updates to Windows 7 have been discontinued since the onset of 2020, so you might have a hard time finding the correct update.恐怕要告诉您,自 2020 年开始,Windows 7 的官方免费支持和更新已停止,因此您可能很难找到正确的更新。

Sometimes, the update unexpectedly fails to install properly.有时,更新意外无法正确安装。 If nothings else works, the service pack version may be fixed through the registry, but at one's own risk as it might lead to consequences.如果没有其他方法,服务包版本可能会通过注册表修复,但风险自负,因为它可能导致后果。

Handling the registry is dangerous, so proceed at your own risk.处理注册表很危险,因此请自行承担风险。

  • Open the registry editor.打开注册表编辑器。
  • Navigate to HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Windows .导航到HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Windows
  • Modify the hexadecimal value of CSDVersion to 100 for SP1, 200 for SP2, and 300 to SP3.CSDVersion的十六进制值修改为 SP1 为 100,SP2 为 200,SP3 为 300。
  • Restart the PC.重新启动电脑。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM