我正在尝试安装brew,但收到以下警告:
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
2to3
2to3-2.7
idle
idle2.7
pydoc
pydoc2.7
python
python-config
python2.7
python2.7-config
pythonw
pythonw2.7
smtpd.py
smtpd2.7.py
Consider amending your PATH so that /usr/local/bin
is ahead of /usr/bin in your PATH.
我不知道如何修改路径。我已经从此堆栈溢出文章(http://stackoverflow.com/questions/8886114/using-brew-with-ruby-1-9-2)探索了几个文件,但是找不到编辑的路径。我仅有的唯一存在的文件是我的/ etc / profile文件,该文件当前如下所示:
# Setting PATH for Python 2.7
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/2.7/local/bin:${PATH}"
export PATH
我只想卸载python,然后通过自制程序重新安装它,但是对一次破坏太多东西有些担心。
有没有简单的方法可以修改路径?我应该创建一个.bash_profile文件吗?感谢您的任何帮助。