如何在Win 7中安装chocolatey
由于自己在Win7中尝试装chocolatey时折腾了好久,所以写下自己的经验供大家参考。
安装chocolatey肯定是首先参考其官方网站(https://chocolatey.org/docs/installation#download-powershell-method)
中的各种方法,包括使用cmd.exe、powershell、脱机安装等,其中.NET最好是4.5以上版本、如果用powershell安装,则至少是powershell v2以上,我是装的v5。但在采用官方方法安装时总是出现securityprotocol的枚举值出错,换而采用以下命令在powershell中安装:
Set-ExecutionPolicy Bypass -Scope Process -Force;iex ((New-Object System.Net.WebClient)