Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.85 KB

File metadata and controls

41 lines (27 loc) · 1.85 KB

Installation

Prerequisites

  • OS: Ubuntu 18.04 LTS
  • Programming language: Python 3

In case you want to know how to build and setup a machine ready for deep learning, please read this document.

Anaconda installation

Anaconda® is a package manager, an environment manager, a Python/R data science distribution, and a collection of over 7,500+ open-source packages. Anaconda is free and easy to install, and it offers free community support.

Get the Anaconda Cheat Sheet and then download Anaconda.

After installing Anaconda, it is recommended to add some channels to the top of the channel list, making it the highest priority, in order to get libraries which are highly-optimized or not available by default:

conda config --add channels pytorch
# EXPERIMENT: Installing the Intel Distribution for Python
# conda config --append channels intel
# conda create -n idp intelpython3_full python=3

Libraries installation

conda install -f requirements_conda.txt
conda install -r requirements_pip.txt

Add Libraries to PYTHONPATH

When running locally, the deep-learning directory should be appended to PYTHONPATH. This can be done by running the following from deep-learning:

# From deep-learning/
export PYTHONPATH=`pwd`${PYTHONPATH:+:${PYTHONPATH}}

Note: This command needs to run from every new terminal you start. If you wish to avoid running this manually, you can add it as a new line to the end of your ~/.bashrc file, replacing pwd with the absolute path of deep-learning on your system.