Source installation

To compile MonetDBe-Python from source, you need to have MonetDB installed. Download the latest MonetDB, or compile from source:

$ hg clone
$ cd MonetDB
$ hg checkout default   # or any other branch, for example Jul2021
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=<monetdb_prefix> -DWITH_CRYPTO=OFF \
$ make install

Don’t forget to replace <monetdb_prefix> with where you want to have MonetDB installed, for example /opt/monetdb.

Now obtain the MonetDBe-Python source code from github:

$ git clone
$ cd MonetDBe-Python
$ pip install .

If MonetDB is not installed in the default search paths (like /usr/local), you need to set some MONETDBE_INCLUDE_PATH and MONETDBE_LIBRARY_PATH environment variables to have pip find MonetDB:

$ MONETDBE_INCLUDE_PATH=<monetdb_prefix>/include/ MONETDBE_LIBRARY_PATH=<monetdb_prefix>/lib pip install .

By default, it is assumed you are compiling against the default branch of MonetDB. If this is wrong, specify the correct branch by setting the MONETDB_BRANCH environment variable before the pip install command above:


If you set the library CFLAGS at compile time you probably also need to set LD_LIBRARY_PATH (or DYLD_LIBRARY_PATH on OS X):

$ LD_LIBRARY_PATH=<monetdb_prefix>/lib