#install TBB
sudo apt install libtbb-dev
#activate conda environment
conda activate factor_graph
#install required packages
pip install pyparsing>=2.4.2
pip install pybind11-stubgen>=2.5.1
pip install numpy
pip install gtsam
#clone gtsam github resp
git clone https://github.com/borglab/gtsam.git
#cd folder of gtsam
cd dir_gtsam
mkdir build
cd build
cmake .. -DGTSAM_BUILD_PYTHON=on \
-DGTSAM_PYTHON_VERSION=3.10 \
-DPYTHON_EXECUTABLE=$(which python3.10)
make -j$(nproc)
make python-install
Ubuntu 20.04 安装gtsam for python in conda environment
于 2024-10-03 21:30:38 首次发布