推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
LuckyJ0511
V2EX  ›  Python

vim8 在安装 YouCompleteMe 时出现问题,提示没有动态库(for Python )

  •  
  •   LuckyJ0511 · Feb 9, 2018 · 5764 views
    This topic created in 3039 days ago, the information mentioned may be changed or developed.

    报错如下: [root@web YouCompleteMe]# python install.py --clang-completer Searching Python 3.5 libraries... ERROR: found static Python library (/alidata/python3/lib/python3.5/config-3.5m/libpython3.5m.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.

    请教:到底时什么问题? im so crazy... python3 时源码安装的,机子上还有个 python2.7

    cstj0505
        1
    cstj0505  
       Feb 9, 2018
    你问题都没搞清楚,是 vim 没有 python 支持
    ai277014717
        2
    ai277014717  
       Feb 9, 2018
    python 编译的有问题。提示都说了加上--enable-shared 重新编译试试,如果用 pyenv 管理 python 环境加上环境变量 PYTHON_CONFIGURE_OPTS="--enable-shared
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2510 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:58 · PVG 23:58 · LAX 08:58 · JFK 11:58
    ♥ Do have faith in what you're doing.