Can you still get the bookworm OS?
Then start from zero, make a new folder and:
$ sudo apt install python3-venv
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install opencv-python==4.11.0.86 (or no version if you need the latest)
pip will install opencv and the required python libraries inside the venv folder
Then it is ready for opencv-powered python code
Then start from zero, make a new folder and:
$ sudo apt install python3-venv
$ python3 -m venv venv
$ source venv/bin/activate
$ pip install opencv-python==4.11.0.86 (or no version if you need the latest)
pip will install opencv and the required python libraries inside the venv folder
Then it is ready for opencv-powered python code
Statistics: Posted by robertojguerra — Fri Nov 07, 2025 1:39 am