<Python, Vim> python3のインストールとpythonのpathの調べ方、Jediでpandasを有効化するため
pythonのlibraryのpathの調べかた。
python3 -c "import sys; print(sys.path)"
Vim上では、
:py3(print(sys.path))
で、msys2にpython3を入れる。
pacman -S python 3.3.3-4 pacman -S python3 pacman -S mingw-w64-x86_64-python3-pip pacman -S mingw-w64-x86_64-python3-numpy pacman -S mingw-w64-x86_64-python3-pandas pacman -S mingw-w64-x86_64-python3-scipy
ここで発見。
msys2とmingw64はちゃうものらしい。。
だから、C:\msys64のフォルダに次の2つのbat fileがあったのか、、
mingw64_shell.bat msys2_shell.bat
mingw64_shell.batで起動すると、
>echo $PATH /mingw64/bin:/usr/local/bin: ...
でmingw64/binが追加されてる。。。 なるへそ。。。
で、本題。
python補完させるには、vimに正しいlibraryを教えんといけん。
.bashrcに
export PYTHONPATH="/mingw64/lib/python3.4/site-packages"
を書き込む。