簡體   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