1 1. 用CMD.EXE 安装:@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"(...
方法/步骤 1 安装Chocolatey的安装需要:PowershellInternet链接下面的操作在Windows 7上面应该是没有问题的。以“管理员方式”打开一个命令行工具,输入下面的命令:@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install....
2、复制页面上提供的安装脚本。 3、返回到PowerShell窗口,粘贴脚本并按回车键运行。 第四步:验证安装 安装完成后,你可以运行几个简单的命令来验证Chocolatey是否已经成功安装,打开一个新的PowerShell窗口(不需要管理员权限),然后尝试以下命令: 1、choco这个命令应该显示Chocolatey的命令列表和帮助信息。 2、choco list...
To install Chocolatey, run the Install.ps1 script from the Chocolatey website (inspect it first):Start Windows PowerShell with the “Run as administrator” option. At the Windows PowerShell prompt, run the following command. It starts a web-based script (Install.ps1), which installs ...
以管理员权限打开PowerShell 在PowerShell中运行以下命令 Set-ExecutionPolicy Bypass-Scope Process-Force;[System.Net.ServicePointManager]::SecurityProtocol=[System.Net.ServicePointManager]::SecurityProtocol-bor3072;iex((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1...
以管理员身份运行 PowerShell 执行以下命令 Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 检查是否安装成功 choco -? 命令能够正常运行说明安装成功
cmd可以,但这里只介绍使用powershell,一定要Run as Administrator,使用该命令行下载: Set-ExecutionPolicyBypass-ScopeProcess-Force;iex((New-ObjectSystem.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 接着升级Chocolatey: choco upgrade chocolatey ...
1 1.首先说下出现的问题:●当你在CMD管理员模式下运行以下chocolatey官方安装命令之后→@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))"...
1 Chocolatey的安装要安装Chocolatey很简单,需要以管理员权限打开命令提示符窗口,然后输入以下命令即可:@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\...
管理员身份打开 「PowerShell」,输入: Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) 也可以使用 cmd 安装(命令不同),不过既然都是 Windows 7 了,那么还是使用 PowerShell 吧,其功能比 cmd 更强。