Installing PySAM
PySAM for Python 3.6 to 3.10 is available on PyPi and Anaconda as nrel-pysam to distinguish it from the completely unrelated pysam package for genomic data sets.
PyPI
pip install nrel-pysam
Anaconda
For Anaconda, be sure to specify the NREL channel.
conda install -c nrel nrel-pysam