SOP 002: Install Dependencies
Fresh 🌱Document ID: SOP-002
Version: 1.0
Status: Active
Objective
Install the fastapi-poe library and verify the installation.
Prerequisites
- Python 3.7 or higher installed
pippackage manager available- Internet connection
Procedure
Step 1: Verify Python Installation
Check your Python version:
bash
python --version
# Should show Python 3.7 or higher
# Or on some systems:
python3 --versionStep 2: Install fastapi-poe
Install using pip:
bash
pip install fastapi-poeOr if you need to use pip3:
bash
pip3 install fastapi-poeStep 3: Verify Installation
Test the installation:
python
import fastapi_poe as fp
print(f"✓ fastapi-poe version: {fp.__version__}")
print("✓ Installation successful!")Verification Checklist
- [ ] Python 3.7+ is installed
- [ ]
fastapi-poepackage installed successfully - [ ] Can import
fastapi_poemodule - [ ] No import errors
Alternative: Virtual Environment (Recommended)
For better dependency management, use a virtual environment:
bash
# Create virtual environment
python -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (Linux/Mac)
source venv/bin/activate
# Install dependencies
pip install fastapi-poeTroubleshooting
Problem: pip: command not found
Solution:
- Install pip:
python -m ensurepip --upgrade - Or use
python -m pip install fastapi-poe
Problem: Permission denied
Solution:
- Use
pip install --user fastapi-poefor user installation - Or use a virtual environment
Problem: Import error after installation
Solution:
- Verify you're using the same Python interpreter:
which python - Reinstall:
pip uninstall fastapi-poe && pip install fastapi-poe
Problem: Version conflicts
Solution:
- Use a virtual environment to isolate dependencies
- Check requirements:
pip list | grep fastapi
Dependencies
The fastapi-poe package includes:
- Core API client functionality
- Protocol message handling
- File upload support
- Async/sync query methods
See Also
Next: 003: Basic Query