安装chocolatey
1、打开cmd.exe命令行
2、输入如下命令:@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin后直接回车。

4、如果cmd无法安装,你可以试一试powershell 命令行的安装,打开powershell.exe
5、输入如下命令:iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

6、同样出现chocolatey is now ready,表示安装成功