A Python interface to bayesmix
-
install
cmake>=3.21.0
from source following the official documentation -
install
libtbb-dev=2020.1-2
(e.g. for Linuxsudo apt install libtbb-dev=2020.1-2
) -
clone the repository
git clone --recurse-submodules git@github.com:bayesmix-dev/pybmix.git
- setup a python environment with
python=3.9
and install the following packages withpip
pip3 install numpy==1.22.4 scipy==1.7.3 matplotlib==3.5.2 2to3==1.0
-
install
protobuf==3.14.0
andlibprotobuf=3.14.0
(e.g.conda install protobuf==3.14.0
will install both) -
add the path for
2to3
to thePATH
environment variable, e.g.
export PYTHONPATH="path/to/2to3/"
- finally, to build the library
./build_pybmix.sh build
Note that, the argument build
substitutes mkdir build
, thus you can skip it in subsequent builds if only the
new changes need to be compiled.