小编anm*_*wal的帖子

在vim中安装YouCompleteMe时遇到python问题

我按照这些说明操作,以便在Vim中安装YouCompleteMe,但是当我发出时:

./install.py --clang-completer
Run Code Online (Sandbox Code Playgroud)

出现以下错误消息:

Searching Python 2.7 libraries...
ERROR: found static Python library (/usr/local/lib/python2.7/config/libpython2.7.a) but a dynamic one is required. You must use a Python compiled with the --enable-shared flag. If using pyenv, you need to run the command:
  export PYTHON_CONFIGURE_OPTS="--enable-shared"
before installing a Python version.
Traceback (most recent call last):
  File "./install.py", line 44, in <module>
    Main()
  File "./install.py", line 33, in Main
    subprocess.check_call( [ python_binary, build_file ] + sys.argv[1:] )
  File "/usr/local/lib/python2.7/subprocess.py", line 540, in check_call …
Run Code Online (Sandbox Code Playgroud)

python linux vim ubuntu python-2.7

6
推荐指数
1
解决办法
2536
查看次数

标签 统计

linux ×1

python ×1

python-2.7 ×1

ubuntu ×1

vim ×1