CocInstall coc- Python 错误
資深大佬 : octalempyrean 61
Coc 对 python 语言的支持扩展怎么安装啊,看了下 wiki,有点迷糊,是我笨。
- 语言服务器的代码是要复制至 CocConfig 文件中么?
- 已经安装了 pip3 install ‘python-language-server[all]’了。
- 当在 VIM 中执行 CocInstall coc-python 的时候出现错误……,错误提示见下图。
- 将下面代码放到 CocCofig 文件中 VIM 启动时有错误提示。

Example with python-language-server 代码如下:
"languageserver": { "python": { "command": "python", "args": [ "-mpyls", "-vv", "--log-file", "/tmp/lsp_python.log" ], "trace.server": "verbose", "filetypes": [ "python" ], "settings": { "pyls": { "enable": true, "trace": { "server": "verbose" }, "commandPath": "", "configurationSources": [ "pycodestyle" ], "plugins": { "jedi_completion": { "enabled": true }, "jedi_hover": { "enabled": true }, "jedi_references": { "enabled": true }, "jedi_signature_help": { "enabled": true }, "jedi_symbols": { "enabled": true, "all_scopes": true }, "mccabe": { "enabled": true, "threshold": 15 }, "preload": { "enabled": true }, "pycodestyle": { "enabled": true }, "pydocstyle": { "enabled": false, "match": "(?!test_).*.py", "matchDir": "[^.].*" }, "pyflakes": { "enabled": true }, "rope_completion": { "enabled": true }, "yapf": { "enabled": true } } } } } }
大佬有話說 (5)