How do I install pymsgbox for LibreOffice core python?

I’m using pymsgbox in a script that I run from an LO Basic macro. Outside LO I did a pip install PyMsgBox and then was able to import it into my python script and it worked fine. However when I tried running the script from a basic macro the package wasn’t found. How do I install it for LO core python or make it available?

Thank you.

Fumbled it out.

Copied pymsgbox and PyMsgBox-1.0.7-py3.7.egg-info from
C:\Users\wayne\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\
to C:\Program Files\LibreOffice\program\python-core-3.5.9\lib\site-packages

Nothing else needed. Works. Is this the right way to do it?