If you have not installed hvsrpy previously:
pip install hvsrpy
Or if you want to upgrade to the latest version of hvsrpy:
pip install hvsrpy --upgrade
For those unfamiliar with pip, more information can be found here.