Complete installation documentation for PowerTrader AI+ Enterprise Trading Platform.
Minimum Requirements:
Recommended Requirements:
python --versionxcode-select --install or via Homebrewsudo apt install git (Ubuntu/Debian)For all users - simplest and most reliable:
# Step 1: Clone repository
git clone <repository-url>
cd PowerTrader_AI
# Step 2: Create virtual environment (ESSENTIAL)
python -m venv .venv
# Step 3: Activate virtual environment
# Windows Command Prompt:
.venv\Scripts\activate
# Windows PowerShell:
.venv\Scripts\Activate.ps1
# macOS/Linux:
source .venv/bin/activate
# Step 4: Install all dependencies automatically
python install_dependencies.py
# Step 5: Launch PowerTrader AI+
cd app
python pt_hub.py
For users who prefer manual control:
# Steps 1-3: Same as Method 1
# Step 4: Manual dependency installation
pip install --upgrade pip
pip install -r requirements.txt --no-warn-script-location --upgrade
# Step 5: Verify installation
python -c "import flask, openai, ccxt, matplotlib, pandas; print('All dependencies installed successfully!')"
# Step 6: Launch application
cd app
python pt_hub.py
For experienced developers:
git clone <repository-url> && cd PowerTrader_AI && python -m venv .venv && .venv\Scripts\activate && python install_dependencies.py && echo "Ready to run: cd app && python pt_hub.py"
Run these commands to verify your installation:
# 1. Verify Python version
python --version
# Expected: Python 3.11.x or higher
# 2. Check virtual environment status
python -c "import sys; print('✓ Virtual environment active' if hasattr(sys, 'real_prefix') or sys.base_prefix != sys.prefix else '✗ No virtual environment detected')"
# 3. Test core dependencies
python -c "
try:
import flask, openai, ccxt, matplotlib, pandas, numpy, websockets, beautifulsoup4
print('✓ All core dependencies available')
except ImportError as e:
print(f'✗ Missing dependency: {e}')
"
# 4. Test PowerTrader modules
cd app
python -c "
try:
from pt_hub import PowerTraderHub
print('✓ PowerTrader Hub can be imported successfully')
except Exception as e:
print(f'✗ PowerTrader import error: {e}')
"
When installation is successful, you should see:
PowerTrader AI+ Dependency Installer
==================================================
Virtual environment detected
Installing dependencies...
This process is completely automated and warning-free
All dependencies installed successfully!
Verifying installation...
[OK] Flask web framework
[OK] OpenAI API client
[OK] Exchange integration
[OK] Web scraping
PowerTrader AI+ is ready to run!
Next steps:
1. cd app
2. python pt_hub.py
Error: 'python' is not recognized as an internal or external command
Solutions:
# Check if Python is installed
python --version
# or try:
python3 --version
py --version # Windows Python Launcher
# If not found, reinstall Python with PATH option
# Download from python.org and check "Add Python to PATH"
# Temporary fix - use full path:
C:\Python313\python.exe install_dependencies.py
Error: ModuleNotFoundError after installation
Solution:
# Ensure virtual environment is active
# You should see (.venv) in your command prompt
# Windows:
.venv\Scripts\activate
# Linux/Mac:
source .venv/bin/activate
# Verify activation:
python -c "import sys; print('Virtual env path:', sys.prefix)"
Error: Various pip installation errors
Solutions:
# Update pip first
python -m pip install --upgrade pip
# Clear pip cache
python -m pip cache purge
# Use alternative installation method
pip install -r requirements.txt --no-cache-dir --force-reinstall
# For permission issues on Windows:
pip install -r requirements.txt --user
Error: SSL or connection errors during installation
Solutions:
# For corporate networks with proxies
pip install -r requirements.txt --proxy http://proxy.company.com:8080
# For SSL certificate issues
pip install -r requirements.txt --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org
# Alternative package index
pip install -r requirements.txt -i https://pypi.python.org/simple/
Error: PowerTrader GUI doesn’t launch
Diagnostic Steps:
# 1. Check for Python errors
cd app
python pt_hub.py
# Look for specific error messages
# 2. Test core functionality
python -c "
import tkinter as tk
root = tk.Tk()
root.title('Test GUI')
root.geometry('300x200')
tk.Label(root, text='GUI Test').pack()
print('GUI test window should appear')
root.mainloop()
"
# 3. Check system logs
# Windows: Event Viewer > Application Logs
# Linux: journalctl or /var/log/
# macOS: Console.app
For developers working on PowerTrader AI+:
# Clone with development branches
git clone -b development <repository-url>
cd PowerTrader_AI
# Install with development dependencies
pip install -r requirements-dev.txt
pip install -e . # Editable installation
# Install pre-commit hooks
pip install pre-commit
pre-commit install
For containerized deployments:
FROM python:3.13-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
CMD ["python", "app/pt_hub.py"]
For users managing multiple PowerTrader instances:
# Environment 1: Production
python -m venv .venv-prod
.venv-prod\Scripts\activate
python install_dependencies.py
# Environment 2: Development
python -m venv .venv-dev
.venv-dev\Scripts\activate
pip install -r requirements-dev.txt
# Environment 3: Testing
python -m venv .venv-test
.venv-test\Scripts\activate
pip install -r requirements-test.txt
cd app
python pt_hub.py
# Install optional performance packages
pip install numba cython
pip install pandas[performance]
# For large datasets
pip install pyarrow fastparquet
# For advanced charting
pip install plotly bokeh
/docs/user-guide/README.md/docs/api-configuration/README.md/docs/troubleshooting/README.md/docs/exchanges/README.md/docs/ folder for detailed guidesFor support requests, gather this information:
# System info
python --version
pip --version
python -c "import platform; print('OS:', platform.platform())"
# PowerTrader info
cd app
python -c "
try:
from pt_hub import __version__
print('PowerTrader version:', __version__)
except:
print('PowerTrader version: Not available')
"
# Dependency versions
pip list | grep -E "(flask|openai|ccxt|matplotlib|pandas)"
Installation complete! You’re now ready to use PowerTrader AI+ for professional trading and portfolio management.