将vim / youcomepleteme与anaconda python集成
发布时间:2020-12-15 22:57:35 所属栏目:安全 来源:网络整理
导读:我试图获得Vim插件YouCompleteme,直到我安装了Anaconda的 Python发行版. 相关信息: :Vim中的YcmDebugInfo返回 ????‘E858:Eval没有返回有效的Python对象. 在我的vimrc中,我有: Bundle 'Valloric/YouCompleteMe'let g:ycm_auto_trigger = 1let g:ycm_path
我试图获得Vim插件YouCompleteme,直到我安装了Anaconda的
Python发行版.
相关信息: :Vim中的YcmDebugInfo返回 在我的vimrc中,我有: Bundle 'Valloric/YouCompleteMe' let g:ycm_auto_trigger = 1 let g:ycm_path_to_python_interpreter = '/Users/briantoomey/anaconda/bin/python' let g:ycm_filetype_blacklist = {} 在github上讨论其他人的vimrc之后我也试过了 let g:ycm_path_to_python_interpreter = '/usr/bin/python' let g:ycm_path_to_python_interpreter = '/usr/bin/python2' 在vim中返回的错误都与之相关 youcompleteme#Enable 在bash, $which python 产量 $/Users/briantoomey/anaconda/bin/python 和 产量 $Python 2.7.6 :: Anaconda 1.9.0 (x86_64) 有什么想法吗? 解决方法
我和@Andy_Haden的情况相同,并且在chrischoy的github issue 8(
https://github.com/Valloric/YouCompleteMe/issues/8)中发现了这个评论:
“”” 只需暂时将/ path / to / anaconda / bin / python-config中的python-config文件更改为python-config.tmp,同时编译YCM并重命名为normal.它会做到这一点.“”” (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |