Follow the instructions in the README.md file: https://github.com/unitreerobotics/unitree_sdk2_python/blob/master/README.md
python3 -m venv venv
source venv/bin/activate
pip install -e ~/path/to/....../unitree_sdk2_pythonexport CMAKE_PREFIX_PATH=/home/<USER>/cyclonedds/install:$CMAKE_PREFIX_PATH
CYCLONEDDS_HOME=/home/<USER>/cyclonedds/installTo allow IntelliSense in VSCode, add the following to your settings.json file:
"python.analysis.extraPaths": [
"/your/path/......../unitree_sdk2_python"
]