以管理员身份打开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://community.chocolatey.org/install.ps1'))

搜索安装包:

​​

win11安装chocolatey软件包管理工具(win版)_安装包