• DepthAI-v2
  • Updated Oak-D Lite install help needed for Rpi4

I've been attempting to install the software for an Oak-D lite all day on a Rpi4 running the latest OS updated and upgraded. The instruction I found at Corre-Electronics

sudo apt-get update && upgrade
sudo curl -fL https://docs.luxonis.com/install_dependencies.sh | bash
python3 -m pip install depthai
git clone luxonis/depthai-python.git
cd depthai-python
cd examples
sudo python3 install_requirements.py
cd
sudo pip3 install opencv-python
sudo pip3 install -U numpy
sudo python3 -m pip install depthai --user
cd depthai-python/examples

The "python3 -m pip install depthai" line threw an error with "externally-managed-environment" which I resolved by adding "--break-system-packages"

I managed to get to "sudo python3 install_requirements.py" where the "externally-managed-environment" error occurred again.

I do not know how to resolve this. I could not find updated installation instructions on Luxonis website. I also tried using their image, which throws errors and can't find OpenCV or Depthai.

Thanks,

Dave

    DaveEverett

    DaveEverett externally-managed-environment

    this is a python thing that prevents you from installing in the base environment. This is to prevent future errors.
    Easiest way to overcome this is to create separate python environments for each project you do. Options are venv, pipenv, conda, mamba,.. google it.

    Thanks,
    Jaka