Skip to content

Instantly share code, notes, and snippets.

@sigwyg
Created November 2, 2018 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigwyg/ca6eb61df329a3012c64ca64f096d74c to your computer and use it in GitHub Desktop.
Save sigwyg/ca6eb61df329a3012c64ca64f096d74c to your computer and use it in GitHub Desktop.
NeoVim用のPython環境を整える ref: https://qiita.com/sigwyg/items/41630f8754c2028a7a9f
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
$ brew install pyenv
$ brew install pyenv-virtualenv
# インストール可能な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
" 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