Created
November 2, 2018 11:07
-
-
Save sigwyg/ca6eb61df329a3012c64ca64f096d74c to your computer and use it in GitHub Desktop.
NeoVim用のPython環境を整える ref: https://qiita.com/sigwyg/items/41630f8754c2028a7a9f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install pyenv | |
$ brew install pyenv-virtualenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# インストール可能なPythonのバージョンを確認 | |
$ pyenv install --list | |
# インストール済みのPythonバージョンを確認 | |
$ pyenv versions | |
# python2環境 | |
$ pyenv install 2.7.15 | |
$ pyenv virtualenv 2.7.13 neovim2 | |
$ pyenv activate neovim2 | |
$ pip2 install neovim | |
$ pyenv which python | |
#python3環境 | |
$ pyenv install 3.5.3 | |
$ pyenv virtualenv 3.5.3 neovim3 | |
$ pyenv activate neovim3 | |
$ pip install neovim | |
$ pyenv which python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" for Python | |
let g:python_host_prog = $PYENV_ROOT.'/versions/neovim2/bin/python' | |
let g:python3_host_prog = $PYENV_ROOT.'/versions/neovim3/bin/python' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment