“First, let’s check what version of NumPy PiCamera2 is using. Open up a new terminal window (don’t close the old one), and punch in the following:
python3 -c “import numpy; print(numpy._version_)”
“
This gives:
2.4.2
“This will print out a version number. Get that version number and enter it with the following command, which will tell Conda to downgrade to this compatible version:”
That will just be the standard environment you get when you open up a Pi terminal.
Ultralytics uses a more advanced version of numpy, you need to downgrade it to the type used by the Raspberry Pi in order to use the Picamera module without dependency issues.
So you’re clarifying the standard Pi environment’s numpy version.
Picamera 2 is built upon an older version of numpy, but Ultralytics calls for a newer version. The steps in our Conda Installation Guide were very particular so that this conflict is resolved.