Build dependencies:

  • Numpy

  • Cython

  • C++11 compiler

  • CMake

Runtime Dependencies

  • Numpy

macOS / Linux
macOS / Linux

Simply execute the following commands:

$ git clone
$ cd TileDB-Py
$ pip install -r requirements_dev.txt
$ python build_ext --inplace
$ python install

If you wish to use a custom version of the TileDB library and it is installed in a non-standard location, pass the path to with the --tiledb= flag. If you want to pass extra compiler/linker flags during the C++ extension compilation step use --cxxflags= or --lflags=.

$ python install --tiledb=/home/tiledb/dist

If you want to build against a conda-installed libtiledb, simply run:

# After activating the desired conda environment
$ conda install tiledb
$ python install --tiledb=$CONDA_PREFIX

If TileDB is installed in a non-standard location, you also need to make the dynamic linker aware of libtiledb's location. Otherwise when importing the tiledb module you will get an error that the built extension module cannot find libtiledb's symbols:

$ env LD_LIBRARY_PATH="/home/tiledb/dist/lib:$LD_LIBRARY_PATH" python -m unittest -v

For macOS the linker environment variable is DYLD_LIBRARY_PATH.


If you are building the extension on Windows, first install a Python distribution such as Miniconda. You can then either build TileDB from source, or download the pre-built binaries.

Once you've installed Miniconda and TileDB, execute:

> cd TileDB-Py
> conda install conda-build
> conda install virtualenv
> virtualenv venv
> venv\Scripts\activate
> pip install -r requirements_dev.txt
> python build_ext --inplace --tiledb=C:\path\to\TileDB\
> set PATH=%PATH%;C:\path\to\TileDB\bin
> python -m unittest -v

Note that if you built TileDB from source, then replace C:\path\to\TileDB with C:\path\to\TileDB\dist.