PySAM for Python 3.5 to 3.8, as NREL-PySAM, is available on PyPi. It is also available on Anaconda for MacOSX up to 3.8 and on Windows and Linux up to 3.7. NREL-PySAM-stubs is the stub file package providing auto-completion features.

To install from PyPi:

pip install nrel-pysam

To install from Anaconda, the NREL channel needs to be appended:

conda config --env --append channels nrel
conda install nrel-pysam nrel-pysam-stubs