Python Environments on Altair® AI Edge™ devices
Altair® AI Edge™ devices comes with a default (base) Python installation located in /usr/bin/python3
, and two pre-built environments you can use out-of-the-box to push to your device if they suit your needs:
Note that you must only use ARM64-compatible Python environments with your Altair® AI Edge™ devices! A nice tool to build ARM64-compatible environments is Astral. Download with
curl -LsSf https://astral.sh/uv/install.sh | sh
, create + activate a new environment, then add libraries withuv
prefix e.g.uv pip install onnxruntime onnxruntime_extensions pandas numpy
.
Currently there are no operators in the AI Edge Toolbox extension to get / push / delete Python environments; to do so, you must use the RapidMiner ECP API endpoints and the IoT Studio EdgeOps Cluster API Inspector.
For example:
POST /support/rapidminer/scoring-agents/01/python-environments
body:
{
"file": "https://altair-ai-edge.s3.amazonaws.com/rapidminer/python-environments/ai-edge-torch.tar",
"name": "ai-edge-torch.tar",
"auth": {
"type": "omit"
}
}
Once you do so, your new Python executable will be located at /altair/python/\<your-environment-name\>/bin/python3
.
Note: You must enter this path in your Execute Python operator in the
python binary
field in order to query the binary in your environment!