db_python_version_diff() | Database Utilities | Teradata Package for Python - db_python_version_diff - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

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"}