Pathogenでjedi-vimをインストールしました。私のシステムpythonではなく、python 3.6であるanaconda pythonを使用したい。.bashrc ファイルの $PATH 変数を次のように編集しました。
export PATH="/opt/anaconda/3-5.0.0.1/bin:$PATH"
anaconda python用のジェダイをpipインストールしました。
Python ファイルを編集しようとすると、次のエラーが発生します。
Error: jedi-vim failed to initialize Python: jedi#setup_python_imports: ImportError: No module named jedi (in function jedi#ini
t_python..<SNR>24_init_python..jedi#setup_python_imports, line 32). See :messages and/or :JediDebugInfo for more information.
の出力は次の:verbose JediDebugInfo
とおりです。
##### Global Python
Using Python version 2 to access Jedi.
- global sys.executable: `/opt/anaconda/3-5.0.0.1/bin/python`
- global sys.version: `2.7.5 (default, Jun 11 2019, 14:33:56), [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]`
- global site module: `/usr/lib64/python2.7/site.pyc`
それが役立つ場合は、いくつかの詳細情報:
which python
/opt/anaconda/3-5.0.0.1/bin/python
which python2
/usr/bin/python2
which python3
/opt/anaconda/3-5.0.0.1/bin/python3