Elide does not install PyPI packages in 1.6.0. It imports packages from a Python 3.13 virtual environment named by
VIRTUAL_ENV.
| Source | What Elide does |
|---|---|
pyproject.toml [project] dependencies | Nothing; [project.scripts] entry points run with elide run (Python Toolchain) |
elide.pkl dependencies.pypi | Accepts the declaration; elide install skips it (reference) |
requirements.txt | Nothing |
$VIRTUAL_ | Adds it to sys.path |
elide install --ecosystems=pypi prints elide install: pypi installs are not available in this build and exits 2.
Create a virtual environment
Create the environment with a Python 3.13 tool. With uv:
uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python attrsThe environment’s own interpreter is only used to install packages; Elide runs the code.
Use it
# app.py
import attrs
@attrs.define
class Point:
x: int
y: int
print(Point(1, 2))VIRTUAL_ENV=.venv elide python app.pyPoint(x=1, y=2)Activating the environment sets VIRTUAL_ENV too:
source .venv/bin/activate
elide run app.pyWithout VIRTUAL_ENV, the import fails with ModuleNotFoundError: No module named 'attrs'.
Limits
- The environment must be Python 3.13: Elide reads
lib/python3.13/site-packages. - Pure-Python packages work. Some C extension modules do not load.
- pip is not bundled, so
elide python -m pipfails; install with the environment’s own tools.