To install ELFI, run this command in your terminal:
pip install elfi
ELFI is currently tested only with Python 3.5. If you are new to Python, perhaps the simplest way to install it is Anaconda
Currently it is required to use Distributed 1.14.3.
Virtual environment using Anaconda¶
If you want to create a virtual environment before installing, you can do so with Anaconda:
conda create -n elfi python=3.5 scipy source activate elfi pip install elfi
Potential problems with installation¶
ELFI depends on several other Python packages, which have their own dependencies. Resolving these may sometimes go wrong:
- If you receive an error about missing numpy, please install it first.
- If you receive an error about yaml.load, install pyyaml.
- On OS X with Anaconda virtual environment say conda install python.app and then use pythonw instead of python.
- Note that ELFI currently supports Python 3.5 only, although 3.x may work as well.
The sources for ELFI can be downloaded from the Github repo.
You can either clone the public repository:
git clone https://github.com/HIIT/elfi.git
Or download the tarball:
curl -OL https://github.com/HIIT/elfi/tarball/master
Once you have a copy of the source, you can install it with:
python setup.py install