For linking libboost-python to the correct python. Apt installation uses system python.
Switch to the desired pyenv
Get python headers path using python-config --includes --libs
and add the path in ~/.zshrc
:
export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/home/ruth/.pyenv/versions/3.6.12/include/python3.6m"