How to symlink python in Homebrew?

丶灬走出姿态 提交于 2019-11-26 09:37:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!