例如 multi_cam_support分支。(这个分支已经合并到主分支了,所以链接不存在了,以下只是演示如何安装特定分支。)
▌1.打开链接
▌2.克隆代码
- 复制链接
- 打开终端
- 克隆
git clone https://github.com/luxonis/depthai-python.git -b multi_cam_support
- 进入目录
▌3.安装依赖
- 打开终端
- 安装依赖
python3 examples/install_requirements.py
若使用虚拟环境或conda ,请使用以下方法:
python3 examples/install_requirements.py -dr
执行上述命令会输出类似下方的输出
pip 22.2.2 from <path>/site-packages/pip (python 3.8)
<path>/python -m pip install -U --user pip
<path>/python -m pip install -U --prefer-binary --user pyyaml requests numpy opencv-python
<path>/python -m pip install -U --prefer-binary --user --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local "depthai==2.17.3.1.dev+b29822e30d782deb9ae8100817b34aea67fb1257"
<path>/python <path>/depthai-python/examples/downloader/downloader.py --all --cache_dir <path>/depthai-python/examples/downloader/ --num_attempts 5 -o <path>/depthai-python/examples/models
请将上方输出,依次执行,并将 –user 参数去除,例如
python -m pip install -U pip
python -m pip install -U --prefer-binary pyyaml requests numpy opencv-python
python -m pip install -U --prefer-binary --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local "depthai==2.17.3.1.dev+b29822e30d782deb9ae8100817b34aea67fb1257"