pip Installation¶
Prerequisites
The following packages are required:
sudo apt-get install -y libcurl4 llvm-14-dev g++-aarch64-linux-gnu
Cross compilation allows users to compile for a aarch64 device (say Jetson or Raspberry Pi) on an x86_64 host device (say Intel or AMD CPU). The g++-aarch64-linux-gnu package above enables this cross-compilation support.
Python version requirement
Please note that Python versions are constrained and must be Python 3.9–3.11.
If you meet the following minimum requirements you can proceed with installing via pip. If not, you can install LEIP Design with Docker.
| Operating System | Python Version | CUDA Driver |
|---|---|---|
| Ubuntu 22 | 3.10 | CUDA driver version ≥ 12.6 and compatible NVCC version (as shown by nvcc -V). |
1. Set license key¶
After you receive your license key via email, place it in the following location: ~/.leip/license.key.
If you'd like, export your license key as an environment variable:
export LEIP_LICENSE_KEY=<your-license-key>
mkdir -p ~/.leip && echo "$LEIP_LICENSE_KEY" > ~/.leip/license.key
Alternative license key configurations
If you prefer, you can simply set LEIP_LICENSE_KEY as an environment variable. You can also place the key in a .leip/license.key file in your project directory: "$PWD"/.leip/license.key.
2. Set authentication key¶
To install packages from Latent AI, you'll need to strip the prefix from your license key and set an environment variable for authentication.
export LEIP_LICENSE_KEY=$(cat ~/.leip/license.key)
export LEIP_AUTH_KEY="${LEIP_LICENSE_KEY#key/}"
3. Install with pip¶
Install the leip-design package with the following command:
pip install --extra-index-url https://latentai:${LEIP_AUTH_KEY}@packages.latentai.io/python/ leip-design