如何在自制软件中对Python进行符号链接? [英] How to symlink python in Homebrew?

查看:91
本文介绍了如何在自制软件中对Python进行符号链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某种原因,当我运行"brew link python"时,它不是符号链接.我收到以下错误,并且按照它告诉我的操作去做,但是它不起作用.我已尝试执行它告诉我的操作,但是也许我没有正确设置一级方程式名称.另外,当我执行哪个python"时,它并不指向Homebrew python,我也需要帮助修复它.

For some reason it's no symlinking when I run `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. Also, when I do 'which python' it doesn't point to the Homebrew python and I need help fixing that as well.

    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吗?

这篇关于如何在自制软件中对Python进行符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆