Installing XenseSDK
Installation Guide
Step 1: Prepare the Python Development Environment
# Navigate to the Xense SDK directory
cd xensesdk
# Create and activate a virtual environment
conda create -n xenseenv python=3.9
# or conda create -n xenseenv python=3.10
conda activate xenseenv
Note
It is recommended to use Anaconda with Python version 3.9 or 3.10.
Step 2: Install CUDA Toolkit and cuDNN
The SDK requires onnxruntime_gpu, along with the matching cuDNN and cudatoolkit. Select the following installation method based on your environment:
Install the required versions:
# This example uses CUDA 12.9
conda install nvidia/label/cuda-12.9.0::cuda-toolkit nvidia::cudnn
Add the CUDA path to the environment variable ‘LD_LIBRARY_PATH’:
# Run the following command in Linux
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$CONDA_PREFIX/lib64 # (Temporary)
mkdir -p $CONDA_PREFIX/etc/conda/activate.d && echo 'export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$CONDA_PREFIX/lib64:$LD_LIBRARY_PATH' > $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh # (Permanent)
Search for the required versions:
conda search cudnn
conda search cudatoolkit
Install the required versions:
conda install cudnn==8.9.2.26 cudatoolkit==11.8.0
Step 3: Install the Xense SDK Package Install the SDK package into your environment:
# Install from a local directory (for custom packages)
pip install xensesdk-0.1.0-cp39-cp39-win_amd64.whl
# Or install from PyPI
pip install xensesdk -i https://repo.huaweicloud.com/repository/pypi/simple/