2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

deoplete-jediの設定

2
Posted at

Summary

deoplete-jediの設定

Setteing

dein.toml


[[plugins]]
repo = 'zchee/deoplete-jedi'
on_ft = 'python'
hook_add = '''
    let g:deoplete#sources#jedi#python_path = '/usr/local/bin/python3.6'
'''

Point

let g:deoplete#sources#jedi#python_path にPython3.exeを通しておく

これをすることで補完につかうPython3を固定できる

つまり

pip 3 fooでいれたライブラリに対して補完できる

この設定をしないと、$PATHで最初に捕まえた

Python3を使用することになるので

pip3Python3と違う可能性が生じる

つまり

下記の設定は必ずおこなうこと

let g:deoplete#sources#jedi#python_path = /path/to/python3

使用してるPythonの確認方法

$ which python3
/usr/local/bin/python3
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?