Python Windows 7 - 安装失败 0x80240017

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32673097/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 12:02:31  来源:igfitidea点击:

Python Windows 7 - Installation Fail 0x80240017

pythoninstallationfailed-installation

提问by Sessha

I tried installing Python 3.5.0 on my laptop, running Windows 7, and it would keep returning with a "Setup failed" with 0x80240017 - Unspecified Error.

我尝试在运行 Windows 7 的笔记本电脑上安装 Python 3.5.0,但它会不断返回“安装失败”和 0x80240017 - 未指定错误。

I've tried running as admin and with the three different installers on the site.

我尝试以管理员身份运行并使用站点上的三个不同安装程序。

Here is the log file: http://pastebin.com/9yuXv1qK

这是日志文件:http: //pastebin.com/9yuXv1qK

回答by Anshu

It is throwing that error because it is trying to install that KB (2999.. something) and failing. If you try to install that KB yourself, it might fail too, as it has some minimum OS requirements. In my case, it was Service Pack 1 for Windows 7. After installing Service Pack 1 I was able to install Python 3.5.x fine.

它正在抛出该错误,因为它正在尝试安装该 KB(2999 .. 某些东西)并且失败了。如果您尝试自己安装该 KB,它也可能会失败,因为它有一些最低操作系统要求。就我而言,它是 Windows 7 的 Service Pack 1。安装 Service Pack 1 后,我能够很好地安装 Python 3.5.x。

回答by PythonNewbie001

I am also using win 7 home premium SP1 and encountered this problem, I solved it by:

我也在使用 win 7 home premium SP1 遇到这个问题,我通过以下方式解决了:

  1. Go the Windows Update in the Control Panel

  2. Search for the installed update named KB2999226

  3. Uninstall that update

  1. 转到控制面板中的 Windows 更新

  2. 搜索名为 KB2999226 的已安装更新

  3. 卸载该更新

And DONE!!!

并做了!!!

Honestly, use this method at your own risk as I am just a newbie in programming and have no idea what that Windows Update was for. But I did it anyways.

老实说,使用这种方法的风险由您自己承担,因为我只是一个编程新手,不知道 Windows 更新是做什么用的。但我还是这么做了。

回答by Fabio Consultant

Just in case are facing it with Windows 7 for PCs:

以防万一在 PC 上使用 Windows 7:

Very simple, reinstall Windows Service Pack and repair the Visual C++ Redistributable and bingo, the error disappears.

很简单,重新安装Windows Service Pack 并修复Visual C++ Redistributable 和bingo,错误消失。

In case of difficulties, uninstall all the software involved (Visual C++, etc.) and reinstall as the proper sequence.

如果遇到困难,请卸载所有相关软件(Visual C++ 等)并按正确顺序重新安装。

回答by George Fischhof

I collected the required update packages to install python on win 8.1 This topc is related to the following one as well:

我收集了在win 8.1上安装python所需的更新包这个topc也与以下一个有关:

Python install failed windows 8.1- Error 0x80240017: Failed to execute MSU package

Python 安装失败 Windows 8.1-错误 0x80240017:无法执行 MSU 包

the packages (I did not check the subset of packages, but if you install the all, python can be installed. There are some packages that requires another one before install, the required one is listed here as well. So if the install says "this upgrade is not suitable for this machine" just go on, install other packages, and when you finished, install the remaining packages that you were not able to install before.

包(我没有检查包的子集,但如果你安装了所有的,python 可以安装。有一些包在安装前需要另一个,这里也列出了所需的一个。所以如果安装说“这次升级不适合本机”继续,安装其他软件包,完成后安装之前无法安装的其余软件包。

clearcompressionflag.exe

清除压缩标志.exe

Windows8.1-KB2887595-v2-x64.msu

Windows8.1-KB2887595-v2-x64.msu

Windows8.1-KB2898514-x64.msu

Windows8.1-KB2898514-x64.msu

Windows8.1-KB2901101-x64.msu

Windows8.1-KB2901101-x64.msu

Windows8.1-KB2906956-x64.msu

Windows8.1-KB2906956-x64.msu

Windows8.1-KB2908174-x64.msu

Windows8.1-KB2908174-x64.msu

Windows8.1-KB2919355-x64.msu

Windows8.1-KB2919355-x64.msu

Windows8.1-KB2919442-x64.msu

Windows8.1-KB2919442-x64.msu

Windows8.1-KB2932046-x64.msu

Windows8.1-KB2932046-x64.msu

Windows8.1-KB2934018-x64.msu

Windows8.1-KB2934018-x64.msu

Windows8.1-KB2937592-x64.msu

Windows8.1-KB2937592-x64.msu

Windows8.1-KB2938439-x64.msu

Windows8.1-KB2938439-x64.msu

Windows8.1-KB2959977-x64.msu

Windows8.1-KB2959977-x64.msu

Windows8.1-KB2999226-x64.msu

Windows8.1-KB2999226-x64.msu

As it can be seen I used win 8.1 x64. The total size of these packages is about 1 GB. These all are downloadable from microsoft update center.

可以看出我使用了 win 8.1 x64。这些包的总大小约为 1 GB。这些都可以从微软更新中心下载。

BR, George

BR,乔治

回答by DeeMan

I was trying to install Python 3.6.0 on Windows 7 64x laptop and kept getting stuck on installing KB2999226. So, I read what others did on this forum(Fabio Consultant). A previous post mentioned Visual Studio. So, I went to Programs and Features (where you Uninstall a Program), right clicked on the most recent install of Visual Studio, selected "Change" and did a "repair". Once that completed, I installed Python as an Administrator (right click on the .exe file and "run as Administrator") and Python installed without a problem. I didn't see that the install tried to install KB2999226.

我试图在 Windows 7 64x 笔记本电脑上安装 Python 3.6.0,但一直卡在安装 KB2999226 上。所以,我读了其他人在这个论坛上所做的(法比奥顾问)。上一篇文章提到了 Visual Studio。所以,我去了程序和功能(在那里你卸载程序),右键单击最近安装的 Visual Studio,选择“更改”并进行“修复”。完成后,我以管理员身份安装 Python(右键单击 .exe 文件并“以管理员身份运行”)并且 Python 安装没有问题。我没有看到安装尝试安装 KB2999226。

Details on KB2999226 (https://support.microsoft.com/en-us/kb/2999226). It looks like repairing Visual Studio corrects issues with CRT. Someone correct me if Im wrong.

有关 KB2999226 ( https://support.microsoft.com/en-us/kb/2999226) 的详细信息。看起来修复 Visual Studio 可以纠正 CRT 的问题。如果我错了,有人纠正我。

Hope this helps.

希望这可以帮助。

回答by LUKA

I have faced the same issue -unspecified error during installation Package: python-3.6.0-amd64.exe Platform: Windows Embedded standard, 64-bit.

我遇到了同样的问题 - 安装过程中出现未指定错误 包:python-3.6.0-amd64.exe 平台:Windows Embedded 标准,64 位。

Solution that worked for me:

对我有用的解决方案:

  1. Uninstall the corrupted Python installation.
  2. Install KB2999226.
  3. Install Python as Administrator.
  1. 卸载损坏的 Python 安装。
  2. 安装KB2999226
  3. 以管理员身份安装 Python。

回答by Nazma

In my case, I have an application installed in my computer which has python installation in it. I was not able to search it from normal PC search. Just try installing "everything" software if you have complex installation of software like me.

就我而言,我的计算机上安装了一个应用程序,其中安装了 python。我无法从普通的 PC 搜索中搜索到它。如果您像我一样安装了复杂的软件,请尝试安装“所有”软件。

Once you get the path for python installation, add this path to environment (System's) variable and you are good to go.

获得python安装路径后,将此路径添加到环境(系统)变量中,您就可以开始了。

回答by Vishnu Priyaa

  1. Go to https://www.microsoft.com/en-us/download/details.aspx?id=5842

  2. Click Download button and Scroll down to see all files

  3. Select windows6.1-KB976932-X86.exe (32-bit)or windows6.1-KB976932-X64.exe (64-bit).

  4. Click Next

  5. Install this and then install Python

  1. 转到https://www.microsoft.com/en-us/download/details.aspx?id=5842

  2. 单击下载按钮并向下滚动以查看所有文件

  3. 选择windows6.1-KB976932-X86.exe(32 位)windows6.1-KB976932-X64.exe(64 位)

  4. 点击下一步

  5. 安装这个然后安装Python

Happy Coding :)

快乐编码:)