24

出于某种原因,当我运行“brew link python”时,它没有符号链接。我收到以下错误,我按照它告诉我的去做,但它不起作用。我已经尝试做它告诉我做的事情,但也许我没有正确设置公式名称。此外,当我执行“which 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
4

1 回答 1

58

你试过了brew link --overwrite python吗?

于 2012-11-13T01:35:11.233 回答