Windows: 使用Windows包管理器。Winget
winget install --id Microsoft.Powershell --source winget
debian:
sudo apt-get update
sudo apt-get install -y wget apt-transport-https software-properties-common
wget -q <https://packages.microsoft.com/config/ubuntu/$>(lsb_release -rs)/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update
Windows (PS)启用脚本运行
Get-ExecutionPolicy
set-ExecutionPolicy RemoteSigned
WSL
Windows旧版本(23H2就算了),安装WSL 参考https://learn.microsoft.com/zh-cn/windows/wsl/install-manual 启动Windows 功能