Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to symlink python in Homebrew?

Tags:

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 
like image 630
Jennifer Avatar asked Nov 13 '12 01:11

Jennifer


1 Answers

Did you try brew link --overwrite python?

like image 143
Michael Mior Avatar answered Sep 22 '22 10:09

Michael Mior