windows brew 如何安装
时间: 2023-07-07 15:41:33 浏览: 536
Windows操作系统上没有官方的Brew安装包,但你可以通过安装Linux子系统来使用Brew。以下是安装步骤:
1. 打开 PowerShell 并以管理员身份运行。
2. 运行以下命令以启用 Windows Subsystem for Linux 功能:
```
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
```
3. 重新启动计算机。
4. 从 Microsoft Store 安装适用于 Linux 的 Windows 子系统,例如 Ubuntu。
5. 打开 Ubuntu 并更新软件包列表:
```
sudo apt update
```
6. 安装 Brew:
```
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
```
等待安装完成后,你就可以在 Ubuntu 中使用 Brew 了。请注意,由于 Brew 运行在 Linux 子系统中,因此你无法使用它来管理 Windows 上的软件包或应用程序。
阅读全文
相关推荐















