Skip to content

Python Bindings

Some functionality of B-Human is exported to Python using pybind11 in a package called pybh.

Requirements

  • A development version of Python (with libraries and headers), e.g. an installed package python3-dev on Ubuntu.
  • The usual platform-dependent requirements as given in Initial Setup
  • pip >= 21.3 (or --use-feature=in-tree-build must be used)

Procedure

  1. Ensure that Make/Python/build and Make/Python/pybh.egg-info do not exist (these may be left from previous builds).
  2. While the Python environment in which you want to install the package is active, run:
    pip install <path-to-B-Human>/Make/Python
    

API

See the B-Human Python documentation.


Last update: October 15, 2024