something about C++ compiler not being installed properly on macOS
running this solved the issue:
CFLAGS=-stdlib=libc++ pip install cvxpy
export MACOSX_DEPLOYMENT_TARGET=10.10
reference: https://stackoverflow.com/questions/53033202/cvxpy-stlibc-installation-error-on-macos-mojave