Installation

Theoretically:

pip install cython numpy scipy gdal
pip install git+https://github.com/Kortforsyningen/malstroem.git[speedups]

Unfortunately the above doesn’t work on all platforms as malstroem uses som third party libraries and has some optimized code which needs to be compiled for each platform.

Installing on Linux

Theory is reality:

pip install cython numpy scipy gdal
pip install git+https://github.com/Kortforsyningen/malstroem.git[speedups]

Installing on Windows

These instructions are for Python v2.7 64bit. Change accordingly if you prefer another version of Python.

  1. Download and install latest Python 2.7 “Windows x86-64 MSI installer”
  2. Download and install “Microsoft Visual C++ Compiler for Python 2.7”
  3. Go to Christoph Gohlke and download numpy, gdal and scipy wheels matching your python. For Python 2.7 64 bit it should be files ending in cp27‑cp27m‑win_amd64.whl
  4. Open windows command prompt and go to the scripts folder in your Python installation. In a defaut install it should be something like
cd c:\Python27\scripts
  1. For each of the 3 wheel files downloaded from Gholke (starting with numpy) install it with pip like this:
pip install c:\downloads\numpy‑1.11.3+mkl‑cp27‑cp27m‑win_amd64.whl
  1. Now (finally) install malstroem
pip install git+https://github.com/Kortforsyningen/malstroem.git[speedups]
  1. Still in the scripts folder of your Python (c:python27scripts) check that malstroem responds to
malstroem --help

Installing on Mac OSX

The biggest problem on OSX is getting GDAL to work. One known solution is via homebrew:

  1. Make sure homebrew is installed and you know how to use its Python (See for instance this guide)
  2. Install GDAL and its Python bindings
brew install gdal
  1. Make sure you use the homebrew Python and install malstroem and its dependencies (If you are using a virtualenv create it using –system-site-packages)
pip install cython numpy scipy
pip install git+https://github.com/Kortforsyningen/malstroem.git[speedups]