0

我在 Mavericks 上安装 Ultisnips 和 YouCompleteMe 真是太糟糕了。我已经 brew 安装了 python,然后是 vim。我的 vim 大部分时间都在工作,但是在尝试启用这两个插件时,python 错误永远不会结束。

像:

Error detected while processing function UltiSnips#bootstrap#Bootstrap:
line   35:
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File"/usr/local/Cellar/python/2.7.6_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/hashlib.py", line 139, in <module>
globals()[__func_name] = __get_hash(__func_name)

我已经通过谷歌搜索阅读了所有我能读到的内容,但这场战斗似乎比与山狮的战斗要困难得多。

我的 .vimrc 在这里:https ://github.com/nobleach/dotfiles/blob/master/.vimrc

我现在已经注释掉了这两个有问题的插件(是的,我知道我有冲突的绑定,我只使用一个)

4

2 回答 2

0

对于遇到这些问题的其他任何人,实际上是自制的 python 安装存在问题。它需要强制使用酿造的 openssl 版本:

brew install openssl
brew link openssl --force
brew uninstall python
brew install python --with-brewed-openssl

应该让事情再次发生。

于 2014-05-28T13:01:51.833 回答
0

对我来说,在我的 mac 中使用 homebrew 升级 python 后,我重新安装了 vim 以使所有的东西都能正常工作。

brew uninstall vim
brew install vim
于 2014-12-20T02:22:09.593 回答