I was able to install Gen1 and run many of the examples on RPi Zero W connected to either Oak-D or Oak-1. The installation and test runs are done in a RPi terminal on the RealVNC screen share RPi over WiFi and MacOS 11. To install Gen2, I followed the most recent instructions on API docs (still in RPi terminal):
sudo curl -fL http://docs.luxonis.com/_static/install_dependencies.sh | bash
sudo pip install virtualenv
mkdir depthai2 && cd depthai
virtualenv venv
source venv/bin/activate (after this it's in venv)
python3 -m pip install -U pip
python3 -m pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.1.0.0.dev+536addb2118cf67961d0d4d6bdad4eb46d711a08
At the end, it said "Successfully installed depthai-2.1.0.0". Then cd depthai-python/examples to install requirements:
python3 install_requirements.py
python3 01_rgb_previews.py
It reported "Illegal instruction".
I also ran under depthai2/ the following according to the Installation section:
git clone https://github.com/luxonis/depthai-python.git
Then python3 install_requirements.py under examples. Result is the same.
The venv folder only has python2.7. The python3.7 is in .local/lib/. Online search found the most recent RPi OS doesn't have python3.9. I'm not sure why Gen2 doesn't work.
Please help. Thanks.