我在使用brew安装python时遇到问题,最初问题与没有正确权限的文件夹有关,但是感谢StackOverflow社区的用户我设法解决了这个问题。以下是该问题的link。
但现在问题不同我搜索相同的错误并尝试在stackoverflow和其他网站上发布大多数解决方案,但问题仍然存在。
以下是我从brew安装中获得的错误堆栈:
Python demo
/usr/local/share/python/Extras
Distribute and Pip have been installed. To update them
pip install --upgrade distribute
pip install --upgrade pip
To symlink "Idle" and the "Python Launcher" to ~/Applications
`brew linkapps`
You can install Python packages with (the outdated easy_install or)
`pip install <your_favorite_package>`
They will install into the site-package directory
/usr/local/lib/python2.7/site-packages
See: https://github.com/mxcl/homebrew/wiki/Homebrew-and-Python
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-2.7
/usr/local/bin/pip
/usr/local/bin/easy_install-2.7
/usr/local/bin/easy_install
我也试过这个问题答案提供的解决方案:Home Brew Python Installing