简体   繁体   English

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

[英]How to symlink python in Homebrew?

For some reason it's no symlinking when I run `brew link python.' 出于某种原因,当我运行`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. 我已经尝试过做它告诉我要做的事情,但也许我没有把formula_name放在正确的位置。 Also, when I do 'which python' it doesn't point to the Homebrew python and I need help fixing that as well. 此外,当我做'哪个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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM