You have to remove opencv and its dependencies: sudo apt remove python3-opencv sudo apt autoremove Then install again with the version you want: sudo apt install python3-opencv=4.6.0 Hope it works.