安装 Python 3.6 时出现 0x80070643 错误

我实际上正在将 Python 用于音频隐写术项目,但我遇到了一些麻烦。我在论坛上搜索了这个错误代码,但我发现了关于 SQL 安装而不是 Python 的东西。

由于 pip 的错误,我试图在卸载后重新安装 Python 3.6.5。

我安装了 Python 2.7、Python 3.6.5、Python 和 VS 2017,然后卸载它,因为它不起作用。

但是,当我以管理员身份运行安装程序时,点击“自定义安装”,勾选除“balblalblabal(这需要 VS 2015 或更高版本)”之外的所有内容,然后点击“安装”,它告诉我: capture 1 capture 2

我真的需要 Python 才能工作,但我现在陷入了困境......

如果这里有人可以帮助我,那就太好了!谢谢大家,马利克。

PS:我有你的日志:*

The log link

stack overflow 0x80070643 error while installing Python 3.6
原文答案
author avatar

接受的答案

I found this in the log file which you have attached. Try cleaning the registry with CC cleaner and give it a try. If it still doesn't work, try installing python with web installer Python Web Installed 3.6.5.

[3DA0:2968][2018-12-05T20:46:18]e000: Error 0x80070643: Failed to install MSI package.
[3DA0:2968][2018-12-05T20:46:18]e000: Error 0x80070643: Failed to execute MSI package.
[2610:03A4][2018-12-05T20:46:18]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[2610:03A4][2018-12-05T20:46:18]i319: Applied execute package: core_AllUsers, result: 0x80070643, restart: None
[2610:03A4][2018-12-05T20:46:18]e000: Error 0x80070643: Failed to execute MSI package

答案:

作者头像

I installed python from Microsoft store after facing this problem and it magically got installed without any error as it may have directly been installed. I don't know but try if it eorks for you too.

作者头像

You need to run the installation as a local administrator.

作者头像

I also faced the similar issue. What the trick worked for me is I installed it for the individual user (as earlier installation was for the all users). So earlier if one has installed it for the all users then install it for the specific user and vice versa.

I know this is not the resolution of the error faced. However, this approach will install Python which is the main motive to achieve.

作者头像

I had the same problem installing Python version 3.9 for the first time on my Windows 10, as this same problem happens to many users trying to install Python, the best solution I accidentally, just like @MANAN AGGARWAL discovered trying to check if I already had a version of Python installed on my computer by the DOS Command Prompt, was:

Open the DOS Command Prompt (cmd) and dictate "python": if a screen shows you a version, it's clearly not the first time you've installed Python, so if you want to upgrade you should try: https: / /www.delftstack.com/en/howto/python/how-to-update-python/ But if you've never installed any version of Python, the solution lies in updating your operating system to the latest version through Windows Update, and open the command prompt and type Python, or go directly to the Microsoft Store and search for Python followed by its latest version. It works without error. ** If by chance it does not automatically install on your PC after downloading, click "install on my devices" and select your computer name.

Why can't I install Python directly from the website file? Please note that when trying to install any software/applications from outside Microsoft's trusted locations, there are high chances of user settings interfering with the installation. When coming, for example, from the Microsoft Store, a chance of success is much greater, even without having problems related to User Permission Settings.

Another important thing to point out here is that installing a lot of software from outside Microsoft's trusted platforms can cause you to change some user permissions which can have positive effects with some software and negative effects with others, even with security your own system if you don't know what you're doing.

作者头像

it's simple , Try Lower Version Like 'Python 3.6' but Download web install. install it , then install last python version. your python will update.