Installation¶
This guide will help you install and set up CitizenAI on your system.
Prerequisites¶
Before installing CitizenAI, ensure you have the following prerequisites:
System Requirements
- Python: 3.11 or higher
- Operating System: Windows, macOS, or Linux
- Memory: At least 4GB RAM recommended
- Storage: 1GB free disk space
Required Software¶
Installation Methods¶
Method 1: Clone from GitHub (Recommended)¶
# Clone the repository
git clone https://github.com/AkhileshMalthi/Citizen-AI.git
# Navigate to the project directory
cd Citizen-AI
# Create a virtual environment (recommended)
python -m venv .venv
# Activate the virtual environment
# Windows:
.venv\Scripts\activate
# macOS/Linux:
source .venv/bin/activate
# Install dependencies
pip install -r requirements.txt
Method 2: Download ZIP¶
- Go to the GitHub repository
- Click on "Code" → "Download ZIP"
- Extract the ZIP file to your desired location
- Open terminal/command prompt in the extracted folder
- Follow steps 3-6 from Method 1
Dependencies¶
CitizenAI relies on several Python packages:
Flask==2.3.3
flask-session==0.5.0
requests==2.31.0
python-dotenv==1.0.0
ibm-watson==7.0.1
ibm-cloud-sdk-core==3.18.0
plotly==5.17.0
pandas==2.1.3
numpy==1.25.2
Werkzeug==2.3.7
Virtual Environment
It's highly recommended to use a virtual environment to avoid conflicts with other Python projects:
Verification¶
After installation, verify that everything is working correctly:
# Run the demo version (lightweight, no AI dependencies)
python app_demo.py
# You should see output similar to:
# * Running on http://127.0.0.1:5000
# * Debug mode: on
Open your web browser and navigate to http://localhost:5000
. You should see the CitizenAI interface.
Troubleshooting¶
Common Issues¶
Python version issues
If you're getting Python version errors:
Permission errors during installation
On Windows, try running as administrator:
On macOS/Linux:
Module not found errors
Ensure you're in the correct directory and virtual environment:
Getting Help¶
If you encounter issues not covered here:
- Check the Troubleshooting section
- Search existing GitHub Issues
- Create a new issue with detailed error information
Next Steps¶
Once installation is complete, proceed to the Quick Start guide to learn how to configure and run CitizenAI.