[Python] Ch0: Install Python: Ubuntu

1. Install request package

$ sudo apt-get update && apt-get upgrade
$ sudo apt-get install wget vim

2. Install Python3

Miniconda

2-1. Download installer

$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh

2-2. Change the access permissions of files

$ chmod +x Miniconda3-latest-Linux-x86_64.sh

2-3. Install

# install miniconda in ~/opt
$ mkdir -p ~/opt
$ bash Miniconda3-latest-Linux-x86_64.sh

2-4. Activate conda

1. bash

  • Copy conda initialize in ~/.bash_profile to ~/.bashrc, as below:

  • Activate
$ source ~/.bashrc # or open new Terminal