The script in this topic shows the complete environment setup process to install Teradata Package for Python on IBM PowerPC.
- 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" - Make the script executable and run.
chmod +x setup_teradataml_powerpc.sh ./setup_teradataml_powerpc.sh