PySAM for Python 3.8 to 3.13 is available on PyPi as nrel-pysam to distinguish it from the completely unrelated pysam package for genomic data sets.
pip install nrel-pysam