3

我在使用 brew 安装 python 时遇到问题,最初问题与没有正确权限的文件夹有关,但感谢来自 StackOverflow 社区的用户,我设法解决了这个问题。这是该问题的链接

但是现在问题不同了,我搜索了相同的错误并尝试了在 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 安装

4

0 回答 0