windows包管理工具choco安装

 

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. 验证是否安装成功

 

posted @ 2023-05-09 07:26  小半个程序猿  阅读(950)  评论(0编辑  收藏  举报