参考页面:https://index.ros.org/doc/ros2/Installation/Dashing/Windows-Install-Binary/
1 系统必须为Win10
2 安装 Chocolatey
Choco就是个类似Ubuntu下的APT-GET工具,可以实现win系统下所有安装包的管理。
- 管理员身份运行powershell
- 检查 Get-ExecutionPolicy 为 not Restricted。
- powershell 中 运行
Get-ExecutionPolicy,如果返回Restricted
, 则运行 Set-ExecutionPolicy AllSigned解除操作限制即可。 执行安装:
安装完毕,未出现错误就OK。Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
- 检查安装。运行 choco,返回
PS C:\WINDOWS\system