Install Miniconda 3

This section provides a tutorial example on how to install Miniconda 3. Once installed, you can start and end the Conda 'base' environment similar to a Linux shell.

To get started with Conda, you can follow this tutorial to install Miniconda on a CentOS computer.

1. Download Miniconda installation shell script:

herong$ export
herong$ curl$miniconda > $miniconda
herong$ ls -l
  93052469 Aug 24 02:06

2. Run the installation shell script:

herong$ bash

In order to continue the installation process, please review the license
Please, press ENTER to continue

Do you accept the license terms? [yes|no]
[no] >>> yes

Miniconda3 will now be installed into this location:

  - Press ENTER to confirm the location
  - Press CTRL-C to abort the installation
  - Or specify a different location below

[/home/herong/miniconda3] >>> ENTER

The following NEW packages will be INSTALLED:
  _libgcc_mutex      pkgs/main/linux-64::_libgcc_mutex-0.1-main
  ca-certificates    pkgs/main/linux-64::ca-certificates-2020.1.1-0
  certifi            pkgs/main/linux-64::certifi-2020.4.5.1-py38_0
  cffi               pkgs/main/linux-64::cffi-1.14.0-py38he30daa8_1
  chardet            pkgs/main/linux-64::chardet-3.0.4-py38_1003
  conda              pkgs/main/linux-64::conda-4.8.3-py38_0
  conda-package-han~ pkgs/main/linux-64::conda-package-handling-1.6.1-py38h7b6447c_0
  cryptography       pkgs/main/linux-64::cryptography-2.9.2-py38h1ba5d50_0
  idna               pkgs/main/noarch::idna-2.9-py_1
  ld_impl_linux-64   pkgs/main/linux-64::ld_impl_linux-64-2.33.1-h53a641e_7
  libedit            pkgs/main/linux-64::libedit-3.1.20181209-hc058e9b_0
  libffi             pkgs/main/linux-64::libffi-3.3-he6710b0_1
  libgcc-ng          pkgs/main/linux-64::libgcc-ng-9.1.0-hdf63c60_0
  libstdcxx-ng       pkgs/main/linux-64::libstdcxx-ng-9.1.0-hdf63c60_0
  ncurses            pkgs/main/linux-64::ncurses-6.2-he6710b0_1
  openssl            pkgs/main/linux-64::openssl-1.1.1g-h7b6447c_0
  pip                pkgs/main/linux-64::pip-20.0.2-py38_3
  pycosat            pkgs/main/linux-64::pycosat-0.6.3-py38h7b6447c_1
  pycparser          pkgs/main/noarch::pycparser-2.20-py_0
  pyopenssl          pkgs/main/linux-64::pyopenssl-19.1.0-py38_0
  pysocks            pkgs/main/linux-64::pysocks-1.7.1-py38_0
  python             pkgs/main/linux-64::python-3.8.3-hcff3b4d_0
  readline           pkgs/main/linux-64::readline-8.0-h7b6447c_0
  requests           pkgs/main/linux-64::requests-2.23.0-py38_0
  ruamel_yaml        pkgs/main/linux-64::ruamel_yaml-0.15.87-py38h7b6447c_0
  setuptools         pkgs/main/linux-64::setuptools-46.4.0-py38_0
  six                pkgs/main/linux-64::six-1.14.0-py38_0
  sqlite             pkgs/main/linux-64::sqlite-3.31.1-h62c20be_1
  tk                 pkgs/main/linux-64::tk-8.6.8-hbc83047_0
  tqdm               pkgs/main/noarch::tqdm-4.46.0-py_0
  urllib3            pkgs/main/linux-64::urllib3-1.25.8-py38_0
  wheel              pkgs/main/linux-64::wheel-0.34.2-py38_0
  xz                 pkgs/main/linux-64::xz-5.2.5-h7b6447c_0
  yaml               pkgs/main/linux-64::yaml-0.1.7-had09818_2
  zlib               pkgs/main/linux-64::zlib-1.2.11-h7b6447c_3

installation finished.

Do you wish the installer to initialize Miniconda3
by running conda init? [yes|no]
[no] >>> yes
no change     /home/herong/miniconda3/condabin/conda
no change     /home/herong/miniconda3/bin/conda
no change     /home/herong/miniconda3/bin/conda-env
no change     /home/herong/miniconda3/bin/activate
no change     /home/herong/miniconda3/bin/deactivate
no change     /home/herong/miniconda3/etc/profile.d/
no change     /home/herong/miniconda3/etc/fish/conf.d/
no change     /home/herong/miniconda3/shell/condabin/Conda.psm1
no change     /home/herong/miniconda3/shell/condabin/conda-hook.ps1
no change     /home/herong/miniconda3/lib/python3.8/site-packages/xontrib/conda.xsh
no change     /home/herong/miniconda3/etc/profile.d/conda.csh
modified      /home/herong/.bashrc

==> For changes to take effect, close and re-open your current shell. <==

If you'd prefer that conda's base environment not be activated on startup,
   set the auto_activate_base parameter to false:

conda config --set auto_activate_base false

Thank you for installing Miniconda3!

3. If you skipped the initialize step by mistake, you can do it with the conda command:

herong$ ~/miniconda3/bin/conda init

(same output as above)

4. Log out and log in to use the Conda environment. By default, the "base" environment is activated at login time. Several environment variables are added or updated to control this environment.

(logout and login)
(base) herong$ set | grep miniconda3


5. To quit from this Conda "base" environment and go back to normal Linux environment, run the "conda deactivate" command.

(base) herong$ conda deactivate

6. To enter into the Conda "base" environment again, run the "conda activate" command.

herong$ conda activate
(base) herong$

7.If you'd prefer that conda's base environment not be activated on startup, set the auto_activate_base parameter to false:

(base) herong$ conda config --set auto_activate_base false

(logout and login)

Ok, we have successfully installed the Miniconda "base" environment. See the next tutorial on what that environment offers us.

Table of Contents

 About This Book

 Running Python Code Online

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

 Statements - Execution Units

 Function Statement and Function Call

 Iterators, Generators and List Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

 "sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python - Python Libraries for Science

 pandas - Data Analysis and Manipulation

Anaconda - Python Environment Manager

 What Is Anaconda

Install Miniconda 3

 Introduction to Conda Environment

 Conda Configuration Files

 Share Conda Environment with Others

 Manage Packages in Conda Environment

 Run Conda Environment Command in Background

 Jupyter Notebook and JupyterLab


 Full Version in PDF/EPUB