Comprehensive installation instructions for PowerTraderAI+ on Windows.
git clone https://github.com/sjackson0109/PowerTraderAI.git
cd PowerTraderAI
python --version
pip --version
# Create virtual environment
python -m venv powertrader_env
# Activate virtual environment
powertrader_env\Scripts\activate
# Verify activation (prompt should show environment name)
Install the essential packages required for PowerTrader to function:
# Navigate to PowerTraderAI+ directory
cd PowerTraderAI
# Install core dependencies
pip install -r requirements.txt
PowerTrader includes an automated installer for optional dependencies that provide enhanced functionality:
# Run the optional dependency installer
python app/install_optional_deps.py
Interactive Installation Options:
websocket-client, ccxt)scipy)seaborn)openai)These packages are essential and installed with pip install -r requirements.txt:
tkinter - GUI framework (included with Python)matplotlib - Charting and visualizationpandas - Data analysis and manipulationnumpy - Numerical computingrequests - HTTP client for API callspython-kucoin - KuCoin API clientrobin-stocks - Robinhood API clientcryptography - Encryption for secure storageThese packages provide additional functionality and graceful degradation if missing:
Real-time Market Data (for live feeds and multi-exchange support):
websocket-client - WebSocket connections for real-time dataccxt - Cryptocurrency exchange library with 100+ exchangesAdvanced Analytics (for enhanced risk management and statistical analysis):
scipy - Scientific computing and advanced statisticsCharts & Visualization (for beautiful statistical plots):
seaborn - Statistical data visualizationAI Research (for AI-powered market analysis):
openai - OpenAI API client for market researchVerify which dependencies are available:
# Test all dependencies
python test_dependencies.py
Note: PowerTrader is designed with graceful degradation - if optional packages are missing, the system will show helpful installation messages and fall back to core functionality.
python pt_hub.py
The first run will prompt you to configure:
PowerTraderAI+ creates these files during setup:
PowerTraderAI/
├── gui_settings.json # UI preferences
├── credentials/ # Encrypted API keys
│ ├── kucoin_keys.enc
│ └── robinhood_keys.enc
└── logs/ # Application logs
├── powertrader.log
└── audit.log
Recommended IDEs:
For development and testing:
pip install -r requirements-dev.txt
Includes:
pytest - Testing frameworkblack - Code formattingpylint - Code analysis1. Python Not Found
# Error: 'python' is not recognized
# Solution: Add Python to PATH or use full path
C:\Python39\python.exe pt_hub.py
2. Module Import Errors
# Error: ModuleNotFoundError: No module named 'requests'
# Solution: Install requirements
pip install -r requirements.txt
3. Permission Errors
# Error: Permission denied
# Solution: Run as administrator
# Right-click Command Prompt → "Run as administrator"
4. Firewall/Antivirus Blocks
5. Network Connectivity
# Test internet connection
ping api.kucoin.com
ping robinhood.com
If installation issues persist:
Once installation is successful:
Next Steps: Exchange Setup Guide