gpt4 book ai didi

python - brew install python,然后是: "python-2.7.6 already installed, it' s just not linked"

转载 作者:IT老高 更新时间:2023-10-28 21:51:39 26 4
gpt4 key购买 nike

免责声明:菜鸟

OSX 10.8.5

当我在 bash 中安装 python 时,我得到了 this warning and error :

Warning: Could not link python. Unlinking...
Error: The 'brew link' step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using 'brew link python

所以我继续打字

brew link python

得到了

Linking /usr/local/Cellar/python/2.7.6... Warning: Could not link python. Unlinking...

Error: Could not symlink file: /usr/local/Cellar/python/2.7.6/bin/smtpd2.py
Target /usr/local/bin/smtpd2.py already exists. You may need to delete it.
To force the link and overwrite all other conflicting files, do:

brew link --overwrite formula_name

我应该这样做吗?在这种情况下链接python是什么意思,更不用说强制链接了,formula_name是什么?

This问题相似但也不同,所以我不敢尝试评分最高的答案,因为它可能只会让我更深入地陷入我现在陷入的兔子洞。

最佳答案

您之前似乎使用其他方法安装过 Python。不要害怕。 Homebrew 经过精心设计,不会像 Mac Ports 等那样弄乱您的系统。

您总是可以执行 brew link --overwrite --dry-run python 以首先查看将被覆盖的确切内容,而无需实际执行。

如果一旦你这样做,它看起来只是覆盖或删除 *.py 脚本,那么你应该更不害怕。

关于python - brew install python,然后是: "python-2.7.6 already installed, it' s just not linked",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20691181/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com