A__*_*A__ 34 python bash homebrew
免责声明:noob
OSX 10.8.5
当我在bash中安装python时,我得到了这个警告和错误:
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
Run Code Online (Sandbox Code Playgroud)
所以我继续打字
brew link python
Run Code Online (Sandbox Code Playgroud)
得到了
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
Run Code Online (Sandbox Code Playgroud)
我应该这样做吗?在这种情况下链接python是什么意思,更不用说强制链接它了,什么是formula_name?
这个问题很相似,但也有所不同,所以我不敢尝试最受欢迎的答案,因为它可能会让我深入挖掘我现在陷入困境的兔子洞.
Wil*_*man 51
看起来您之前使用其他方法安装了Python.不要害怕.Homebrew经过精心设计,因此不会像Mac Ports等人那样搞乱你的系统.
您可以随时brew link --overwrite --dry-run python查看将要覆盖的内容,而不会实际执行此操作.
如果你这样做,它看起来只是覆盖或删除*.py脚本,那么你应该不那么害怕.
| 归档时间: |
|
| 查看次数: |
44071 次 |
| 最近记录: |