问题
For some reason it\'s no symlinking when I run `brew link python.\' I\'m getting the following error and I do what it tells me to do but it\'s not working. I have tried doing what it tells me to do but maybe I\'m not putting the formula_name right. Also, when I do \'which python\' it doesn\'t point to the Homebrew python and I need help fixing that as well.
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
回答1:
Did you try brew link --overwrite python
?
来源:https://stackoverflow.com/questions/13354207/how-to-symlink-python-in-homebrew