Python SDK Installation
The Claro Python SDK is available on PyPI and supports Python 3.8 and higher.Requirements
- Python 3.8 or higher
- pip (Python package installer)
- A Claro API key (get one here)
Install via pip
Install the latest stable version:Verify Installation
Virtual Environment (Recommended)
We recommend using a virtual environment to isolate your project dependencies:- uv
- venv
- conda
- Poetry
Install from Source
To install the latest development version:Upgrading
To upgrade to the latest version:Dependencies
The SDK has minimal dependencies:requests- HTTP client for API callspydantic- Data validation and settings managementtyping-extensions- Type hints for older Python versions
Platform Support
The Claro SDK is tested on:- Operating Systems: Linux, macOS, Windows
- Python Versions: 3.8, 3.9, 3.10, 3.11, 3.12
- Architectures: x86_64, ARM64
Configuration
After installation, configure your API key:.env file:
.env
See Authentication for detailed setup instructions and best practices.
Troubleshooting
pip: command not found
pip: command not found
Install pip using your system’s package manager:
Permission denied when installing
Permission denied when installing
Use Or use a virtual environment (recommended).
--user flag to install without sudo:ImportError after installation
ImportError after installation
Ensure you’re using the correct Python interpreter:
SSL Certificate Error
SSL Certificate Error
Update your SSL certificates:Or install with trusted host flag: