JW.ZG
JW.ZG

Reputation: 611

I can't install packages for Python with Homebrew

I use this statement '$ brew install python' to install Python, and then I type this statement '$ pip install virtualenvwrapper'. It shows:

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

I don't know why. And I type this statement again '$ brew install python', it shows:

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

Why Python is not linked? Does this problem cause the virtualenvwrapper can't be installed? I have uninstalled Python many times. But I still cannot install packages for Python.

Here is my computer information. Mac OS X Yosemite Version 10.10.5, and the Python version I installed through homebrew is 2.7.10.

Thanks in advance!

Upvotes: 0

Views: 1412

Answers (1)

levi
levi

Reputation: 22697

Try to install(overwrite current installation) python again

brew link --overwrite python

Upvotes: 1

Related Questions