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 PowerAI is version 2018.12.
3when running the commands.
- Install Anaconda
- Accept the license agreement
- Specify an installation location (default is
- For setups that have a single Anaconda instance for multiple users, such as Watson Machine
Learning Accelerator, reply
noto update the .bashrc file. After the installation is complete, export the path with this command:
- For other PowerAI users, reply
yesto 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.
- Update your terminal with changes to
- Pin the Conda package (within anaconda) to a known good version of Conda
echo "conda=4.5.12" >> $HOME/anaconda2/conda-meta/pinned
Note that the Conda commands may warn that a new version of Conda exists and provide a command to update Conda. This warning can be safely ignored. As the Conda version is pinned, running the upgrade will have no effect.
conda install python=3.6
conda create -n powerai_env python=3.6 conda activate powerai_env
In some instances, the Anaconda environment can incorrectly select a package from the general 'free' channel instead of the higher priority 'PowerAI' 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