python

Setting to avoid python and anaconda conflict using pyenv and pyenv-virtualenv

Setting to avoid python and anaconda conflict using pyenv and pyenv-virtualenv

Introduction I have been using pyenv only to switch versions of python in local environments. However, recently I use anaconda more often. Since python and anaconda conflict when executing activate command, I decided to use pyenv-virtualenv. Goals Switch python version in one machine Switch the python distribution (anaconda in this case) Resolve conflict between anaconda and pyenv when I execute activate command Activate anaconda without executing the command with full path Both 1 and 2 above are able to solved with pyenv and 3 with pyenv-virtualent.