[PYTHON] [CentOS7] Install anaconda using pyenv

I would like to install pyenv and anaconda on CentOS7.

Advance preparation

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

Install pyenv

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

Installation of anaconda

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

reference

Recommended Posts

[CentOS7] Install anaconda using pyenv
Install Python on CentOS using Pyenv
Install Python on CentOS using pyenv
How to install python using anaconda
How to install Anaconda with pyenv
Install opencv on Mac using Anaconda Navigator
Put Anaconda on your Mac using Pyenv
CentOS8 --Install --Django
pyenv + virtualenv + Anaconda
pyenv + anaconda + python3
pyenv + pyenv-virtualenv (CentOS7)
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
CentOS8 --Install --Python3
Install pyenv and rbenv on CentOS system-wide
Install Python 3.8.6 on macOS Big Sur using pyenv
Install Faiss on CentOS 7
Install pyenv on mac
Install pyenv and pyenv-virtualenv
Install numba on CentOS 7.2
Install Python3.4 on CentOS 6.6
I can't install Anaconda!
Install python (pyenv, pyenv-virtualenv)
Start CentOS 8 using VirtualBox
Install Anaconda on Windows 10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Install python with pyenv
Install pyenv on OSX
Install awscli on centos7
Install Chainer on CentOS 6.7
Install cvxopt on 64bit Anaconda
python (pyenv + pyenv-virtualenv) + CentOS7 installation
How to install Python2.7 python3.5 with pyenv (on RHEL5 CentOS5) (2016 Nov)
Use Anaconda in pyenv environment
Install Python environment with Anaconda
Install Keras (used with Anaconda)
Anaconda environment construction on CentOS7
Install cvxpy on windows, Anaconda
Install CentOS7 VirtualBox Guest Additons
Install ImageMagick-6.2.x series on CentOS7.7
Install Python 3.8 on CentOS 7 (SCL)
Install module on Anaconda (Mac)
When pyenv install BUILD FAILED
Change python version using pyenv
homebrew, pyenv, anaconda, Jupyter Notebook
Install Python 3.7 and Django 3.0 (CentOS)
Install Chrome on CentOS 7 series
Introduction of caffe using pyenv
Install pyenv from Homebrew, install Python from pyenv
Install Linux (CentOS) on your PC using a USB stick
Install Python 3.8 on CentOS 8 (AppStream)
[Python] Anaconda, pyenv, virtualenv, .bash_profile
List of libraries to install when installing Python using Pyenv
Try using folium with anaconda
# Solution when pip install gives an error when using Anaconda on Windows 10
[Python] Error and solution memo when using venv with pyenv + anaconda
Try using Spyder included in Anaconda
Steps to install MySQL 8.0 on CentOS 8.1
Install anaconda on Mac → Add Library
raspberry pi 4 centos7 install on docker
Introducing Python using pyenv on Ubuntu 20.04