that can’t be. where is the opencv-python-headless
or opencv-contrib-python-headless
that caused the exception message?
how many pythons and virtual environments do you have? what IDEs have you installed? are you using any docker or VM or WSL/WSL2? do you have more than one computer?
you’d best find a place that helps you with your beginner python troubles. this is going way beyond the scope of OpenCV support. I can’t possibly guess what is going on with your system.