I decided to make a note of the environment construction of pyenv so that I can forget it later.
-Ubuntu 16.04
The following was implemented according to the reference URL.
$ sudo apt install git
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ git clone https://github.com/yyuu/pyenv-pip-rehash.git ~/.pyenv/plugins/pyenv-pip-rehash
【~/.Added to bashrc]
export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init -)"
$ pyenv install --list | grep anaconda
Check the version of anaconda. When the version has not been updated I did the following to reflect the changes in my local repository.
$ cd $(pyenv root)
$ git pull
After checking the version, install as follows.
$ pyenv install anaconda2-4.1.1
$ pyenv install anaconda3-4.1.1
$ pyenv global anaconda2-4.1.1
$ python --version
Python 2.7.12 :: Anaconda 4.1.1 (64-bit)
$ pyenv global anaconda3-4.1.1
$ python --version
pyenv global anaconda3-4.1.1
It seems that it is switching.
$ pyenv versions
system
anaconda2-4.1.1
* anaconda3-4.1.1 (set by /home/hogehoge/.pyenv/version)
So, I was able to confirm that it seemed to be switching.
$ git clone git://github.com/yyuu/pyenv-update.git ~/.pyenv/plugins/pyenv-update
$ pyenv update
http://keisanbutsuriya.hateblo.jp/entry/2015/03/21/183323
-Installing the pyenv-pip-rehash plugin
http://qiita.com/Kodaira_/items/feadfef9add468e3a85b
-Execute git clone.
http://qiita.com/MasayaHayashi724/items/5096bf19fca347b4e56a
-Run pyenv versions.
http://qiita.com/SUZUKI_Masaya/items/7ba3fef9eb7c9603762a
・ I wonder if it was better to use anyenv. .. ..
Recommended Posts