Documentation Note: This guide describes typical installation patterns for AQI prediction systems. For current implementation status and actual installation instructions, visit the GitHub repository.
System Requirements
Typical system requirements for running AQI prediction models:Python Version
Python 3.8 or higher
Operating System
Linux, macOS, or Windows
Memory
Minimum 4GB RAM (8GB recommended)
Storage
At least 500MB free disk space
Basic Installation
Install AQI Predictor using your preferred package manager:Expected Output
Expected Output
Installation Options
Minimal Installation
Install only the core prediction functionality without training dependencies:Full Installation
Install with all dependencies for model training, evaluation, and visualization:- Deep learning frameworks (TensorFlow, PyTorch)
- Advanced ML libraries (XGBoost, LightGBM)
- Visualization tools (Matplotlib, Seaborn, Plotly)
- Data processing utilities
Development Installation
For contributors or advanced users who want to modify the source code:GPU Support
For faster model training, install GPU-accelerated versions of deep learning frameworks:- TensorFlow GPU
- PyTorch GPU
- Metal (Apple Silicon)
GPU support significantly speeds up training but is not required for making predictions with pre-trained models.
Docker Installation
Run AQI Predictor in a Docker container for isolated and reproducible environments:Using Pre-built Image
Building from Source
Dockerfile
Docker Compose
For more complex setups with databases or multiple services:docker-compose.yml
Configuration
Environment Variables
Configure AQI Predictor using environment variables:.env
Configuration File
Create a configuration file for persistent settings:config.yaml
Dependency Management
Managing Dependencies with Poetry
If you use Poetry for dependency management:pyproject.toml
Managing Dependencies with Conda
Create a conda environment:environment.yml
Upgrading
Upgrade to Latest Version
Upgrade to Specific Version
Check Current Version
Troubleshooting
ImportError: No module named 'aqi_predictor'
ImportError: No module named 'aqi_predictor'
Solution:
- Verify installation:
pip list | grep aqi-predictor - Check Python environment:
which python - Reinstall:
pip install --force-reinstall aqi-predictor
SSL Certificate Verification Failed
SSL Certificate Verification Failed
Solution:If you encounter SSL errors when installing:Or upgrade pip and certificates:
TensorFlow/PyTorch Installation Issues
TensorFlow/PyTorch Installation Issues
Solution:Install deep learning frameworks separately:
Memory Error During Training
Memory Error During Training
Solution:Reduce batch size or use gradient checkpointing:
Permission Denied on Linux/macOS
Permission Denied on Linux/macOS
Solution:Install in user directory:Or use a virtual environment:
Platform-Specific Notes
Windows
On Windows, you may need to install Visual C++ Build Tools:- Download from Microsoft C++ Build Tools
- Install “Desktop development with C++” workload
- Restart your terminal and retry installation
macOS
On macOS, install Xcode Command Line Tools:Linux
On Linux, install build dependencies:Offline Installation
For air-gapped environments without internet access:- Download the package and dependencies on a machine with internet:
-
Transfer the
aqi-packagesdirectory to the offline machine - Install from the local directory:
Uninstallation
Remove AQI Predictor from your system:Next Steps
Now that you have AQI Predictor installed:Quickstart
Make your first prediction in 5 minutes
Configuration
Learn about data preparation and configuration
API Reference
Explore the complete API documentation
Examples
View code examples and usage patterns