Installation¶
ell
and ell studio
are both contained within the ell-ai
python package available on PyPI. You simply need to install the package and set up your API keys.
Installing ell¶
Install using pip:
pip install -U ell-ai
By default, this installs only the OpenAI client SDK. If you want to include the Anthropic client SDK, use the “anthropic” extra like so:
pip install -U 'ell-ai[anthropic]'
Verify installation:
python -c "import ell; print(ell.__version__)"
API Key Setup¶
OpenAI API Key¶
Get API key from https://platform.openai.com/account/api-keys
Install the OpenAI Python package:
pip install openai
Set environment variable:
Windows:
setx OPENAI_API_KEY "your-openai-api-key"
macOS/Linux:
# in your .bashrc or .zshrc export OPENAI_API_KEY='your-openai-api-key'
Anthropic API Key¶
Get API key from https://www.anthropic.com/
Install the Anthropic Python package:
pip install anthropic
Set environment variable:
Windows:
setx ANTHROPIC_API_KEY "your-anthropic-api-key"
macOS/Linux:
# in your .bashrc or .zshrc export ANTHROPIC_API_KEY='your-anthropic-api-key'
Troubleshooting¶
Update pip:
pip install --upgrade pip
Use virtual environment
Try
pip3
instead ofpip
Use
sudo
(Unix) or run as administrator (Windows) if permission errors occur
For more help, see the Troubleshooting section or file an issue on GitHub.
Next Steps¶
Proceed to the Getting Started guide to create your first Language Model Program.