YouCompleteMe不可用:没有名为内置模块的模块

时间:2019-02-18 13:13:27

标签: python vim youcompleteme

我已经安装了YCM,并且在vim中打开文件时收到以下消息

YouCompleteMe unavailable: No module named builtins

我尝试遵循发现的here故障排除技巧,包括运行以下命令;

git submodule update --init --recursive

我从运行:py import pprint; pprint.pprint(sys.path)的输出如下;

[u'/Users/my_name/.vim/bundle/YouCompleteMe/python',
u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests-futures',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/ycmd',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests_deps/idna',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests_deps/chardet',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests_deps/urllib3/src',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests_deps/certifi',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/requests_deps/requests',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/pythonfutures',
 '/Library/Python/2.7/site-packages/pip-18.1-py2.7.egg',
 '/Library/Python/2.7/site-packages/requests-2.20.0-py2.7.egg',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7',
 u'/Users/my_name/.vim/bundle/YouCompleteMe/third_party/python-future/src',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload',
 '/Users/my_name/Library/Python/2.7/lib/python/site-packages',
 '/Library/Python/2.7/site-packages',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC',
 '_vim_path_']

编辑:我正在尝试为python自动运行MacOS Mojave,并使用here

中的安装说明进行安装

0 个答案:

没有答案
相关问题