如何在Homebrew中使用符号链接python?

时间:2012-11-13 01:07:13

标签: python symlink homebrew

由于某种原因,当我运行`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

1 个答案:

答案 0 :(得分:47)

你试过brew link --overwrite python吗?