我刚刚升级到 OSX Yosemite。我正在运行brew doctor
,它生成的无数警告中包括:
Warning: /usr/local/share/python is not needed in PATH.
Formerly homebrew put Python scripts you installed via `pip` or `pip3`
(or `easy_install`) into that directory above but now it can be removed
from your PATH variable.
Python scripts will now install into /usr/local/bin.
You can delete anything, except 'Extras', from the /usr/local/share/python
(and /usr/local/share/python3) dir and install affected Python packages
anew with `pip install --upgrade`.
我到处都仔细看了看,我找不到将 /usr/local/share/python 添加到我的路径的内容。我的 .bash_profile 没有提到 python。/private/etc/paths.d 仅包含一个名为“git”的文件。我确实在 /private/etc/paths 中找到了 /usr/local/share/python 的一个实例,但是我删除了它,但是当我在那之后启动一个新终端并重新运行时,brew doctor
我仍然收到警告。谁能建议我如何阻止这种情况?它快把我逼疯了!