我在我的终端上安装了Homebrew,但是我被困在这里了。它不会重新定义Homebrew。谁可以帮助我,以便安装Python 3.6的Mac高塞拉的Pygame。
Last login: Wed May 9 17:03:33 on console
macs-MacBook-Pro:~ Kyle$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
==> The following existing directories will have their owner set to Kyle:
/usr/local/bin
==> The following existing directories will have their group set to admin:
/usr/local/bin
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/opt
/usr/local/sbin
/usr/local/share
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var
==> The Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
macs-MacBook-Pro:~ Kyle$ brew install python3
-bash: brew: command not found发布于 2018-05-20 17:53:47
根据您终端的输出,似乎未正确完成Homebrew的安装。
实际上,作为安装的一部分,Homebrew安装程序会尝试安装"Xcode命令行工具“。为此,它会要求你按"RETURN“确认你同意安装它们,然后要求你提供密码以获得安装许可。也就是说,如果您按RETURN键并输入您的密码,那么Homebrew安装程序应该能够完成。
一旦安装了Homebrew,您就可以使用brew命令来安装Python,这与第一次尝试类似:
brew install python请注意,brew install python会安装Python3。如果您想要安装Python2,请使用brew install python@2。
https://stackoverflow.com/questions/50430140
复制相似问题