Upgrade your Python version

By default, your ThoughtSpot cluster comes with either Python 3.6 or Python 3.7. In ThoughtSpot version 7.2.1 and later, you can upgrade your Python version to Python 3.9 or remain on the default version.

Supported Python versions

ThoughtSpot supports use of the following versions of Python 3 for deployment. Python 3.6 is the current default version for customer-managed RHEL, customer-managed OEL, and ThoughtSpot-managed CentOS. Python 3.7 is the current default version for customer-managed Amazon Linux 2.

Upgrade your Python version

After you create the cluster, upgrade your Python version to Python 3.9.

To upgrade your Python version, follow these steps:

  1. ssh into a node as an admin user.

    ssh admin@<node-IP>
  2. Run the following command to stop your cluster:

    tscli cluster stop
  3. Ensure that the version of Python you want to use is ThoughtSpot-certified for your deployment type. Python 3.9 is not certified for customer-managed OEL or ThoughtSpot-managed CentOS for VMware, SMC, or Dell.

  4. Install Python version 3.9.

  5. Navigate to the correct location to run the command:

    cd /usr/local/scaligent/release/
  6. Run the following command on all nodes, at /usr/local/scaligent/release/ for each node:

    PATH=/usr/pgsql-11/bin:$PATH pip3 install -r production/prod_image/current/pip_packages/requirements_no_versions.txt --upgrade
  7. Run the following command to start your cluster again:

    tscli cluster start