Use the db_python_version_diff() function to get the difference of the Python interpreter major version installed on Vantage and the Python version used in the current environment.
Use this function only when Python interpreter and add-on packages are installed on the Vantage node.
The db_python_version_diff() returns an empty dictionary when the Python major version is same between Vantage and the current environment. Otherwise, it returns a dictionary with the following keys and their corresponding values:
- 'vantage_version': The Python major version installed on Vantage (e.g., 3.8, 3.9).
- 'local_version': The Python major version used in the current environment (e.g., 3.10, 3.11).
Example
Get the difference in the Python version installed on Vantage and the current environment.
>>> db_python_version_diff()
{"vantage_version": "3.7", "local_version": "3.8"}