Installation¶
Requirements¶
- Python 3.10+
- A working C++ compiler is not required --- llmcad uses pre-built OpenCASCADE bindings.
Install with pip¶
This installs llmcad and its dependencies:
| Package | Purpose |
|---|---|
cadquery-ocp |
OpenCASCADE (OCCT) Python bindings |
numpy |
Numeric operations |
Pillow |
Image handling for snapshots |
vtk |
Offscreen rendering for snapshot() |
Install with conda¶
If you're using conda/miniconda:
Note
Even with conda, pip install is the recommended method. The cadquery-ocp dependency provides pre-built wheels for all major platforms.
Verify installation¶
from llmcad import Box, snapshot
box = Box(10, 20, 30)
snapshot(box, "test_box")
# Should create test_box.png in the current directory
Development install¶
To install from source for development:
Building the docs¶
Then open http://localhost:8000 in your browser.