我正在尝试在我的 Mac 上安装 pygame,因此我正在逐步执行指南,以安装必要的项目。我已经安装了 brew doctor,但是当我尝试运行代码时: sudo brew doctor,我收到如下所示的错误:
apples-MBP-2:~ MaxRothman$ sudo brew doctor
Error: Running Homebrew as root is extremely dangerous and no longer supported. As Homebrew does not drop privileges on installation you would be giving all build scripts full access to your system.
我该如何解决这个问题才能继续下去!谢谢
请您参考如下方法:
如错误所述:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
在没有 sudo 的情况下运行它:
brew doctor
