Install & Compatibility
Where this runs
tested against v0.25.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.158s · 73.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.1s · import 0.154s · 77MB
73MB installed
● package 73MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Gateway
✓ from rattler import Gateway
✗ from rattler import CondaGateway
CondaGateway was renamed to Gateway in v0.20
solve
✓ from rattler import solver
✗ from rattler import solve
The module is named solver, not solve
Basic example: query conda-forge for package information.
import os
from rattler import Gateway, Channel, PrefixRecord
# Initialize gateway with custom channels
gateway = Gateway()
# Query some packages
package_names = ["python", "numpy"]
channel = Channel("conda-forge")
for name in package_names:
pkg_info = gateway.query(channel, name)
print(f"Latest version of {name}: {pkg_info[0].version if pkg_info else 'not found'}")
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'rattler_conda'
Outdated import path from version <0.20
fixChange import to `from rattler import ...`
AttributeError: module 'rattler' has no attribute 'solve'
Attempted to import 'solve' instead of 'solver'
fixUse `from rattler import solver`
rattler.gateway.GatewayError: failed to load repodata
Network issues or incorrect channel URL
fixVerify channel URL is valid and you have internet access. Use explicit channel like `Channel('conda-forge')` Upgrade
Version history
0.25.0latest on PyPI · released Jun 9, 2026
Audit
Dependencies
certifirequiredRequired for HTTPS requests