管理员运行cmd,执行
cmd
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH= %PATH %; %ALLUSERSPROFILE %\chocolatey\bin