版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013253924/article/details/83149821
点击“开始”,搜索栏输入‘cmd’,右键‘cmd.exe’,选择‘以管理员身份运行’,在命令行界面输入:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
回车等待安装完成
命令行键入choco,显示如下,安装成功