Installing Anaconda

Follow these steps to install and set up your system with Anaconda.

A number of the Deep Learning frameworks require Anaconda. Anaconda is a platform-agnostic data science distribution with a collection of 1,000+ open source packages with free community support.

Anaconda is distributed in two different installers:

  • Anaconda2 default environment is Python 2.7
  • Anaconda3 default environment is Python 3.7

Both versions of Anaconda can create Python 2.7 and Python 3.6 environments.

The version of Anaconda tested and supported for this release of WML CE is version 2019.03.

Note: These command line instructions assume Anaconda2; if you are using Anaconda3, replace 2 with 3 when running the commands.
  1. Download Anaconda:
    IBM® Power®
    wget https://repo.continuum.io/archive/Anaconda2-2019.03-Linux-ppc64le.sh
    x86_64
    wget https://repo.continuum.io/archive/Anaconda2-2019.03-Linux-x86_64.sh
  2. Install Anaconda:
    IBM Power
    bash Anaconda2-2019.03-Linux-ppc64le.sh
    x86_64
    bash Anaconda2-2019.03-Linux-x86_64.sh
    1. Accept the license agreement
    2. Specify an installation location (default is $HOME/anaconda2)
    3. For setups that have a single Anaconda instance for multiple users, such as Watson Machine Learning Accelerator, reply no to update the .bashrc file. After the installation is complete, export the path with this command:
      export PATH=/opt/anaconda2/bin:$PATH
    4. For other WML CE users, reply yes to allow the installer to update the .bashrc file. In this case, if multiple users are using the same system, each user should install Anaconda individually.
  3. Update your terminal with changes to .bashrc:
    source ~/.bashrc
  4. Set conda to use strict channel_priority to ensure that the WML CE channel is always used when packages of the same name exist in other channels.
    conda config --set channel_priority strict
  5. Pin the conda package (within Anaconda) to a known good version of conda tested with WML CE:
    echo "conda=4.6.11" >> $HOME/anaconda2/conda-meta/pinned
    Note: The conda command might warn that a new version of Conda exists and provide an update command. This warning can be safely ignored. Because the Conda version is pinned, running the upgrade will have no effect.
Note: If using Anaconda3 the base environment is Python 3.7, which is not supported with WML CE. Either downgrade the base environment to Python 3.6 or create a new environment that is Python 3.6
conda install python=3.6

or

conda create -n powerai_env python=3.6
conda activate powerai_env
Tip:

In some instances, the Anaconda environment can incorrectly select a package from the general free channel instead of the higher priority WML CE channel, potentially causing an undesired package variant to be installed. You can avoid this action by overriding the Anaconda default_channel by running the following config commands:

conda config --add default_channels https://repo.anaconda.com/pkgs/main
conda config --add default_channels https://repo.anaconda.com/pkgs/r