Installation
AlphaPy Pro requires Python 3.10 or higher. You can install it directly from the source repository or via pip after it’s published.
Development Installation
To install AlphaPy Pro for development, clone the repository and install in editable mode:
git clone https://github.com/ScottFreeLLC/alphapy-pro.git
cd alphapy-pro
pip install -e .
This will install AlphaPy Pro along with all required dependencies.
Dependencies
AlphaPy Pro will automatically install the following core dependencies:
Data Processing: pandas>=2.0.0, numpy>=1.24.0
Machine Learning: scikit-learn>=1.3.0
Gradient Boosting: xgboost>=2.0.0, lightgbm>=4.0.0, catboost>=1.2
Visualization: matplotlib>=3.7.0, seaborn>=0.12.0
Configuration: pyyaml>=6.0
Additional dependencies for specific features:
Market Data: yfinance, polygon-api-client, pandas-datareader
Feature Engineering: category_encoders, lofo-importance
Imbalanced Learning: imbalanced-learn
Calibration: venn-abers
Portfolio Analysis: pyfolio (optional, for legacy support)
Using uv (Recommended)
uv is a fast Python package manager. Install it following the instructions at https://docs.astral.sh/uv/getting-started/installation/
Then create a virtual environment and install AlphaPy Pro:
git clone https://github.com/ScottFreeLLC/alphapy-pro.git
cd alphapy-pro
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -e .
Platform-Specific Notes
- macOS (Apple Silicon)
If you’re on an M1/M2 Mac, some packages may require special handling. LightGBM and XGBoost should install correctly with recent versions.
- Windows
All packages should install correctly via pip. If you encounter issues with XGBoost, refer to the official XGBoost documentation.
- Linux
Standard installation should work without issues. Ensure you have Python development headers installed (python3-dev on Ubuntu/Debian).
Verifying Installation
After installation, verify that AlphaPy Pro is correctly installed:
# Check if the alphapy command is available
alphapy --help
# Check if the mflow command is available
mflow --help
# In Python, verify imports
python -c "import alphapy; print(alphapy.__version__)"
Troubleshooting
If you encounter installation issues:
Upgrade pip:
pip install --upgrade pipClear pip cache:
pip cache purgeInstall with verbose output:
pip install -v -e .Check for conflicting packages:
pip check
For specific package issues, consult the documentation for that package:
XGBoost: https://xgboost.readthedocs.io/
LightGBM: https://lightgbm.readthedocs.io/
CatBoost: https://catboost.ai/docs/