简体   繁体   English

Python 3.6 安装失败

[英]Python 3.6 Installation failed

I'm trying to install python3.6 on windows server 2016. I have downloaded python-3.6.6rc1-amd64-webinstall .Followed the default setting to install it.我正在尝试在 windows server 2016 上安装 python3.6。我已经下载了python-3.6.6rc1-amd64-webinstall 。按照默认设置安装它。 But during installation step I got the error message as 0x80070659-This installation is forbidden by system policy. Contact your system administrator但是在安装步骤中,我收到错误消息0x80070659-This installation is forbidden by system policy. Contact your system administrator 0x80070659-This installation is forbidden by system policy. Contact your system administrator . 0x80070659-This installation is forbidden by system policy. Contact your system administrator I have talked with system administrator but he is not aware of this policy.我和系统管理员谈过,但他不知道这个政策。 Can you please guide me to resolve this error?你能指导我解决这个错误吗?

I experienced this very same problem, and right-clicking the setup file, then Run As Administrator solved it.我遇到了同样的问题,右键单击安装文件,然后以管理员身份运行解决了它。 (Credit to @Igwilliams, who suggested this in the comments). (感谢@Igwilliams,他在评论中提出了这一点)。

This was actually very frustrating for me, because I was logged in as an administrator, but apparently that still wasn't enough, I had to do the Run as Administrator thing as well.这对我来说实际上非常令人沮丧,因为我以管理员身份登录,但显然这还不够,我还必须以管理员身份运行。

Login to the system using admin credentials and try installing it.使用管理员凭据登录系统并尝试安装它。 Or when installing provide admin credentials to install it.或者在安装时提供管理员凭据来安装它。

  • Run regedit运行注册表
  • Browse the registry to HKLM\\Software\\Policies\\Microsoft\\Windows\\Installer浏览注册表到HKLM\\Software\\Policies\\Microsoft\\Windows\\Installer
  • Create DisableMSI , type: REG_DWORD , value = 0 (0 should allow you to install, it was originally 1)创建DisableMSI ,键入: REG_DWORD ,值 = 0(0 应该允许您安装,它最初是 1)

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

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