windows包管理工具choco安装

发布时间 2023-05-09 07:34:45作者: 小半个程序猿

 

1. 用管理员模式打开powershell,输入以下命令

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; 
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))


2. 如果powershell 无法粘贴,需要简单按下图设置

                                       

 

 

3. 输入命令后,回车,运行结果如下图所示

 4. 验证是否安装成功