V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2015-03-04 23:52:36 +08:00 · 5944 次点击
    这是一个创建于 3339 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用VirtualEnv创建的Python3虚拟环境一直不能做Python 3补全,会提示YCM Server挂掉了。但是如果是Python 2的VirtualEnv是可以补全的。
    3 条回复    2015-03-05 11:05:24 +08:00
    jprovim
        1
    jprovim  
       2015-03-05 04:14:23 +08:00   ❤️ 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
       2015-03-05 09:51:20 +08:00
    @jprovim 用brew装的macvim好像无法同时支持python 2和python 3
    jiang42
        3
    jiang42  
       2015-03-05 11:05:24 +08:00
    @bringwin808 macports 大法好,退homebrew保平安
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2688 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 15:54 · PVG 23:54 · LAX 08:54 · JFK 11:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.