A note when you want to use multiple pythons in your local environment Simply put, pyenv manages the version of python, and its plugin, pyenv-virtualenv, creates the python environment. You can use pyenv-virtualenv to confine the python environment.
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ echo "export PYENV_ROOT=$HOME/.pyenv" >> .bash_profile
$ echo "export PATH=$PYENV_ROOT/bin:$PATH" >> .bash_profile
$ echo "eval '$(pyenv init -)'" >> .bash_profile
$ pyenv install 3.5.0
$ git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv
$ echo 'eval "$(pyenv virtualenv-init -)"' >> .bash_profile
pyenv virtualenv 3.5.2 app #app is the name of the environment
pyenv activate app #app is the name
Recommended Posts