繁体   English   中英

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

[英]How to symlink python in 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

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

暂无
暂无

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

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