I would like to install pyenv and anaconda on CentOS7.
First, install the required libraries. (Install the following libraries that are not installed)
Terminal
$ sudo yum -y install zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl-devel
Terminal
$ 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
$ source ~/.bash_profile
You have now installed pyenv.
Check PATH for the time being
Terminal
$ which pyenv
~/.pyenv/bin/pyenv
Terminal
$ pyenv install -l | grep anaconda
(abridgement)
anaconda3-4.2.0
anaconda3-4.3.0
anaconda3-4.3.1
$ pyenv install anaconda3-4.3.1
$ pyenv global anaconda3-4.3.1
$ python -V
Python 3.6.0 :: Anaconda 4.3.1 (64-bit)
Installation of anaconda is complete. Then put it in your PATH.
Terminal
$ echo 'PATH="$PYENV_ROOT/versions/anaconda3-4.3.1/bin/:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile
Finally conda and anaconda updates
Terminal
$ conda update conda
$ conda update anaconda
Recommended Posts