推荐学习书目
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
bringwin808
V2EX  ›  Python

YCM 如何做 Python 3 补全?

  •  
  •   bringwin808 · Mar 4, 2015 · 6852 views
    This topic created in 4110 days ago, the information mentioned may be changed or developed.
    用VirtualEnv创建的Python3虚拟环境一直不能做Python 3补全,会提示YCM Server挂掉了。但是如果是Python 2的VirtualEnv是可以补全的。
    3 replies    2015-03-05 11:05:24 +08:00
    jprovim
        1
    jprovim  
       Mar 5, 2015   ❤️ 1
    首先 vim --help | grep python, 看有沒有支持python3. 沒有支持的話. 就不會做.

    `-python +python3`

    因為YCM跑的jedi支持python3, 如果python3 is enabled, python2 is disabled


    更多看Valloric的回復,
    https://github.com/Valloric/YouCompleteMe/issues/1140
    bringwin808
        2
    bringwin808  
    OP
       Mar 5, 2015
    @jprovim 用brew装的macvim好像无法同时支持python 2和python 3
    jiang42
        3
    jiang42  
       Mar 5, 2015
    @bringwin808 macports 大法好,退homebrew保平安
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   952 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 19:50 · PVG 03:50 · LAX 12:50 · JFK 15:50
    ♥ Do have faith in what you're doing.