Complete Environment Setup Script | Teradata Package for Python - Complete Environment Setup Script - 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
2026-02-20
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage
The script in this topic shows the complete environment setup process to install Teradata Package for Python on IBM PowerPC.
  1. Save the following as setup_teradataml_powerpc.sh.
    #!/bin/bash
    set -e
    
    echo "🚀 Setting up TeradataML for PowerPC..."
    
    # Install conda if not present
    if ! command -v conda &> /dev/null; then
        echo "📥 Installing Miniconda for PowerPC..."
        cd /tmp
        wget -q https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-ppc64le.sh
        bash Miniconda3-latest-Linux-ppc64le.sh -b -p $HOME/miniconda3
        export PATH="$HOME/miniconda3/bin:$PATH"
        echo 'export PATH="$HOME/miniconda3/bin:$PATH"' >> ~/.bashrc
    fi
    
    # Create environment
    echo "🔧 Creating conda environment..."
    conda create -n teradataml_test -c conda-forge python=3.9 -y
    source activate teradataml_test
    
    # Install scientific dependencies in order
    echo "📊 Installing scientific dependencies from conda-forge..."
    conda install -c conda-forge numpy -y
    conda install -c conda-forge pandas -y
    conda install -c conda-forge scikit-learn -y
    conda install -c conda-forge lightgbm -y
    conda install -c conda-forge matplotlib -y
    
    # Install teradataml
    echo "🔗 Installing teradataml..."
    pip install teradataml --no-cache-dir
    
    # Test installation
    echo "🧪 Testing installation..."
    python -c "
    import teradataml as tdml
    import numpy as np
    import pandas as pd
    print('✅ All packages imported successfully!')
    print(f'teradataml version: {tdml.__version__}')
    "
    
    echo "🎉 Setup complete! Activate environment with: conda activate teradataml"
  2. Make the script executable and run.
    chmod +x setup_teradataml_powerpc.sh
    ./setup_teradataml_powerpc.sh