If the CDS API was installed using pip (or pip3), then you can use the following command to check the version of the CDS API on your local machine e.g. :
pip freeze
or
pip3 freeze
We advise users to use python3 and install the latest version of the CDS API.