Skip to content

Installation

Neill Herbst edited this page Apr 26, 2017 · 10 revisions

There are 2 ways of installing the project. First of all it is recommended to run the project in its own environment. This will ensure that there are no conflicting modules. The easiest way of doing this is using the Anaconda distribution of Python. The project is currently tested on Python 3.4 and 3.5. The documentation on managing environments can be found here. The steps are summarized below. It is recommended to use the conda environment.yml file. This is the best and fastest method to get the project running. This file will also always be up to date with the modules needed to run the project whereas the requirements.txt file is not always up to date.

Using Pip

First an environment must be created. This can be done using the conda environment manager.
$ conda create --name Evert python=3.x

The x can then be replaced by either 4 or 5. After the process has completed the environment must be activated.

  • Windows: activate Evert
  • Linux/OSX: $ source activate Evert

The requirements must now be installed:
pip install -r requirements.txt

Once this is completed the project should work if the requirements.txt file is up to date.

Using Conda

NOTE: This is the recommended method.
Before creating the environment one must first add the conda-forge channel to the conda installer. This will allow the conda installer to access community supported packages that are not by default added to the anaconda cloud. This allows for much faster downloads and builds than pip. This can be done using the following command:
conda config --add channels conda-forge

The creation of the environment and installation of dependencies is done in one step using the conda installer.
$ conda env create --file environment.yml python=3.x

Again replacing the x with 4 or 5 to represent Python 3.4 or 3.5. This will create the environment. All that is left to do is to activate the environment using the same commands as shown in the Pip section.

Clone this wiki locally