由于某种原因,当我运行`brew link python时,它没有符号链接。我收到了以下错误,我做了它告诉我要做的事情,但它不起作用。我已经尝试过做它告诉我要做的事情,但也许我没有把formula_name放在正确的位置。此外,当我做'哪个python'它没有指向Homebrew python,我也需要帮助修复它。
Linking /usr/local/Cellar/python/2.7.3...Warning: Could not link python.
Unlinking....
Error: Could not symlink file: /usr/local/Cellar/python/2.7.3/bin/smtpd.py
Target /usr/local/bin/smtpd2.py already exists. You may need to delete it.
To force the link and delete this file, do:
brew link --overwrite formula_name
答案 0 :(得分:47)
你试过brew link --overwrite python
吗?