I'm trying to install python 2.7 on the latest version of OSX using brew but I get the following error...
.app bundles were installed.
Run `brew linkapps` to symlink these to /Applications.
Warning: Could not link python. Unlinking...
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link python'
Possible conflicting files are:
/usr/local/bin/pip
/usr/local/bin/easy_install-2.7
/usr/local/bin/easy_install
Would anyone know how to fix this error? I tried brew link python
but this did not work. I'm new to Linux/OSX, so if this is really obvious, I would still appreciate it if someone could point me in the right direction!
The error means those files already exist in /usr/local/bin
If you 'ls -lF' on that dir, are they sym links that point to a path with the word 'cellar' in it?
If so, then brew already put them in place for you. Your are probably missing /usr/local/bin from your PATH
If not, then something else put them there earlier. On a fresh mac, that directory is empty. Brew is a better way to manage those files, so if it was my machine I would remove those files from /usr/local/bin, then you can run brew link. I'd probably keep them in another spot temporarily in case I later discovered a need for them.
Also, run 'brew doctor' when you have a chance. It will tell you about any other problems like this.
Brew wants to own /usr/local/bin. I would let it, it's a great tool.
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句