Installation¶
This guide will help you install Lamia and set up your development environment.
Requirements¶
- Python 3.10 or higher
- pip (Python package installer)
Installation Methods¶
Using pip (Recommended)¶
Install Lamia directly from PyPI:
Development Installation¶
For development or to get the latest features, install from source:
Verification¶
Verify your installation by running:
Configuration¶
After installation, create a basic configuration file with
or copy an existing config.yaml file to your project directory.
Environment Variables¶
lamia init will ask you to install the LLM API keys. But you can set up your environment variables with the following command:
Or create a .env file in your project directory:
Troubleshooting¶
Common Issues¶
Import Error¶
If you encounter import errors, ensure you have the correct Python version:
Permission Error¶
On some systems, you might need to use sudo or install in a virtual environment:
python -m venv lamia-env
source lamia-env/bin/activate # On Windows: lamia-env\Scripts\activate
pip install lamia-lang
Dependency Conflicts¶
If you have dependency conflicts, try creating a fresh virtual environment:
For more help, check our GitHub Issues or create a new issue.