Quick Install
The fastest way to get started:LangChat requires Python 3.8 or higher.
Installation Methods
From PyPI (Recommended)
For production use, specify a version:From Source
Clone the repository and install:Development Installation
For development with all dependencies:pytestfor testingpytest-asynciofor async tests
System Requirements
Python Version
- Minimum: Python 3.8
- Recommended: Python 3.10+
Operating System
LangChat works on:- ✅ Linux
- ✅ macOS
- ✅ Windows
Memory
- Minimum: 2GB RAM
- Recommended: 4GB+ RAM (for reranker models)
The Flashrank reranker downloads models (~50MB) on first use. Make sure you have sufficient disk space.
Verify Installation
Test your installation:Environment Setup
Required Environment Variables
Create a.env file:
Load Environment Variables
Usingpython-dotenv:
Docker Installation
LangChat auto-generates a Dockerfile when running as an API server. You can also create your own:Using Auto-Generated Dockerfile
Manual Dockerfile
Virtual Environment (Recommended)
Always use a virtual environment:Troubleshooting
Issue: pip install fails
Solutions:- Upgrade pip:
pip install --upgrade pip - Use Python 3.8+
- Check your internet connection
Issue: Import errors
Solutions:- Verify Python version:
python --version - Reinstall:
pip uninstall langchat && pip install langchat - Check virtual environment is activated
Issue: Reranker model download fails
Solutions:- Check internet connection
- Verify disk space
- Check write permissions in project directory
Issue: Dependencies conflict
Solutions:- Use a fresh virtual environment
- Check version compatibility
- Review
requirements.txtfor conflicts
Next Steps
Now that LangChat is installed:- Getting Started - Build your first chatbot
- Configuration - Configure LangChat
- Examples - See examples
Ready to start building? Check out our Getting Started Guide!