我无法使用 Homebrew 安装 Python 的软件包

I can't install packages for Python with Homebrew

我使用这条语句'$ brew install python'来安装Python,然后我输入这条语句'$ pip install virtualenvwrapper'。它显示:

    -bash: /usr/local/bin/pip: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

我不知道为什么。然后我再次输入这条语句'$ brew install python',它显示:

    Warning: python-2.7.10_2 already installed, it's just not linked

为什么Python链接不上?这个问题会不会导致无法安装virtualenvwrapper? Python 我卸载了很多次。但是我仍然无法为 Python.

安装软件包

这是我的电脑信息。 Mac OS X Yosemite 版本10.10.5,而我通过homebrew 安装的Python 版本是2.7.10。

提前致谢!

再次尝试安装(覆盖当前安装)python

brew link --overwrite python