To use the meshcat visualization tool for a real-time visualization/experiment replay, pinocchio library needs to be installed in a conda environment through conda-forge. This could prevent rebuilding the controller using CMake, due to the libboost_python${VERSION}.so discrepancy between the c++ and python versions of pinocchio library.
A hacky solution is first building a c++ library and then installing the python version of pinocchio in a conda environment.
If you need to rebuild the c++ library, then erase the current conda environment and recreate the environment.