Install Anaconda in CentOS

from: http://devopspy.com/python/anaconda-centos-7/

3.1 Download Anaconda

For Python 2.7
wget https://repo.continuum.io/archive/Anaconda2-4.3.0-Linux-x86_64.sh
For Python 3.3
wget https://repo.continuum.io/archive/Anaconda3-4.3.0-Linux-x86_64.sh
 

3.2 Install Anaconda

For Python 2.7
bash Anaconda2-4.3.0-Linux-x86_64.sh
For Python 3.3
bash Anaconda3-4.3.0-Linux-x86_64.sh

Install Python3 on CentOS7

from: https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-local-programming-environment-on-centos-7

sudo yum -y update

sudo yum -y install yum-utils

sudo yum -y groupinstall development

sudo yum -y install https://centos7.iuscommunity.org/ius-release.rpm

sudo yum -y install python36u

sudo yum -y install python36u-pip

sudo yum -y install python36u-devel

  • mkdir environments
  • cd environments
  • python3.6 -m venv my_env
  • source my_env/bin/activate