How to uninstall opencv (and all its files )

cv2.imshow("",img)
is not showing the image probably the reason is that that i have installed two open cv one in base directory and one in virtual env
now i want to uninstall all of them how I can completely uninstall and remove from all places to install th

em again

Can you check which packages you have intalled with pip list ? After that you can delete packages with pip:

pip uninstall opencv-contrib-python

Even though you uninstalled opencv-contrib-python, you also need to uninstall other related ones such as opencv-python-headless, opencv-contrib-python-headless packages.

A post was split to a new topic: How to uninstall all files and directories?