It's suggested to use the python 3 series for any python scripting since it is being actively developed and supported by the Python Software Foundation. You will need to install something like the pywin32 package for COM interface support in python, to communicate with the COM interface of OpenDSS.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dear all,
DSS is only support with python 2. But python 2.7 hasn't come with pip? how to import DSS to python script in python 2.
Regards,
Niwantha
OpenDSS supports, through the COM interface DLL, any language that supports the Windows Component Object Model interface.
OpenDSS supports current versions of python which are in the python 3 series. Python 2 was 'sunset' in April 2020 per the following press release: https://www.python.org/psf/press-release/pr20191220/
It's suggested to use the python 3 series for any python scripting since it is being actively developed and supported by the Python Software Foundation. You will need to install something like the pywin32 package for COM interface support in python, to communicate with the COM interface of OpenDSS.