我在 this site 的帮助下安装了 Homebrew .
然后我准备安装 Homebrew 版本的 Python(因为比预装的 OSX 版本更好)but came across this :
Once you’ve installed Homebrew, insert the Homebrew directory at the top of your PATH environment variable. You can do this by adding the following line at the bottom of your ~/.bashrc file
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
我不知道上面的引用是什么意思。
我如何找出 Homebrew 的安装位置以及上述引用与它有什么关系?
我想安装 Python 的原因只是为了使用它的服务器功能,这样我就可以学习 Polymer 教程。
请您参考如下方法:
Homebrew 的“安装”目录在这里:/usr/local/Cellar/。显示在您的 shell 中的二进制文件位于:/usr/local/bin/。将 /usr/local/bin 添加到您的路径意味着可以仅使用其名称访问该文件夹中的任何二进制文件:foo 而不必提供完整路径:/usr/local/bin/foo 每次你想从命令行使用它。
