Loading...
Loading...
Install Holoscan SDK Python wheel via pip into a venv. Use for Python installs; not for native C++/apt or Conda installs.
npx skill4agent add nvidia/skills holoscan-install-wheelholoscan-cu12holoscan-cu13hello_worldvideo_replayernvidia-smiPATHvenvdocs.nvidia.com/holoscan-install-debianholoscan-cu12holoscan-cu13video_replayerHOLOSCAN_INPUT_PATHracerx/ulimit -s 32768https://docs.nvidia.com/holoscan/sdk-user-guide/sdk_installation.htmlholoscan-cu12holoscan-cu13PATHnvidia-smi 2>&1 | head -5| nvidia-smi CUDA Version | pip package |
|---|---|
| 13.x+ | |
| 12.x (any GPU) | |
ls ~/holoscan/venv 2>/dev/null && echo "exists" || echo "missing"python3 -m venv ~/holoscan/venvsource ~/holoscan/venv/bin/activatepip install holoscan-cu12 # or holoscan-cu13# Basic import — expected: version string, e.g. "4.1.0"
# The stack-size RuntimeWarning is harmless; ulimit -s 32768 suppresses it.
python3 -c "import holoscan; print(holoscan.__version__)"
# Fetch Python examples from GitHub at the installed version tag.
# These are official NVIDIA examples, fetched over HTTPS and pinned to the tag
# matching the installed wheel (v${SDK_VER}). Before running them, tell the user
# you're about to download and execute remote example scripts from this URL. If
# they decline or GitHub is unreachable, skip to browsing the examples in Step 4.
SDK_VER=$(python3 -c "import holoscan; print(holoscan.__version__)")
BASE="https://raw.githubusercontent.com/nvidia-holoscan/holoscan-sdk/v${SDK_VER}/examples"
# hello_world — expected: "Hello World!"
curl -fsSL "${BASE}/hello_world/python/hello_world.py" -o /tmp/hs_hello_world.py
ulimit -s 32768 && python3 /tmp/hs_hello_world.py
# video_replayer (10 frames, headless) — expected: "Graph execution finished."
# Always run headless: works with or without a display, avoids GUI failure modes over SSH.
curl -fsSL "${BASE}/video_replayer/python/video_replayer.py" -o /tmp/hs_video_replayer.py
curl -fsSL "${BASE}/video_replayer/python/video_replayer.yaml" -o /tmp/hs_video_replayer.yaml
python3 -c "
c = open('/tmp/hs_video_replayer.yaml').read()
c = c.replace('count: 0','count: 10').replace('repeat: true','repeat: false').replace('realtime: true','realtime: false')
c = c.replace('holoviz:\n width: 854','holoviz:\n headless: true\n width: 854')
open('/tmp/hs_video_replayer_run.yaml','w').write(c)"
ulimit -s 32768 && HOLOSCAN_INPUT_PATH=/opt/nvidia/holoscan/data \
python3 /tmp/hs_video_replayer.py --config /tmp/hs_video_replayer_run.yamlvideo_replayer/opt/nvidia/holoscan/datasudo /opt/nvidia/holoscan/examples/download_example_dataHOLOSCAN_INPUT_PATHsource ~/holoscan/venv/bin/activate
ulimit -s 32768 # suppress stack-size warninghttps://github.com/nvidia-holoscan/holoscan-sdk/tree/v<VERSION>/examples/explain-examplepip install holoscan-cu12ImportErrorimport holoscanpip uninstall -y holoscan-cu13 && pip install holoscan-cu12RuntimeWarning: stack size ...ulimit -s 32768ulimit -s 32768python3 ...video_replayerracerx/HOLOSCAN_INPUT_PATH/opt/nvidia/holoscan/dataHOLOSCAN_INPUT_PATHsource: no such file: ~/holoscan/venv/bin/activate