Installation#
pypi#
The simplest way to install Eloy is through pip, Python’s package installer.
pip install eloy
To install a specific version:
pip install eloy==1.2.3
To upgrade to the latest version:
pip install --upgrade eloy
Important
To use JAX-related functions (such as the Ballet centroiding model) install with
pip install --upgrade "eloy[jax]"
Virtual Environments#
Why Use Virtual Environments?#
Virtual environments isolate project dependencies, preventing conflicts between packages that might require different versions of shared dependencies. They also make your projects more reproducible and portable.
Using uv (Recommended)#
uv is a modern, fast Python package installer and environment manager that works well with Eloy.
Install uv#
pip install uv
Create a New Environment with uv#
uv venv --python 3.11 # choose your version
Activate the Environment#
On Windows:
.\venv\Scripts\activate
On Unix/MacOS:
source venv/bin/activate
Install Eloy in the Environment#
uv pip install eloy
Install Development Dependencies#
uv pip install eloy[dev]
Alternative: Using virtualenv or venv#
If you prefer traditional virtual environment tools:
# Create environment
python -m venv eloy-env
# Activate (platform-specific)
# On Windows:
eloy-env\Scripts\activate
# On Unix/MacOS:
source eloy-env/bin/activate
# Install
pip install eloy
Installing from GitHub#
To install the latest development version from GitHub:
pip install git+https://github.com/lgrcia/eloy.git
Cloning and Installing Locally#
For contributors or to access the newest features:
# Clone the repository
git clone https://github.com/lgrcia/eloy.git
cd eloy
# Install in development mode
pip install -e .
This creates an “editable” installation, meaning changes to the source code will be reflected immediately without reinstalling.
Verify Installation#
Let’s check if Eloy is properly installed:
import eloy
print(f"Eloy version: {eloy.__version__}")
Troubleshooting#
Common Issues:#
Missing dependencies: Ensure all required packages are installed
Version conflicts: Try using a fresh virtual environment
Installation permission errors: Use
--userflag or virtual environmentsCompiler errors: Install necessary build tools for your platform
For additional help, refer to the documentation or open an issue on the GitHub repository.