close

how to uninstall opencv-python package installed by using pip in anaconda?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about how to uninstall opencv-python package installed by using pip in anaconda in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

how to uninstall opencv-python package installed by using pip in anaconda?

  1. how to uninstall opencv-python package installed by using pip in anaconda?

    You should able to see the egg file that corresponds to the package you want to uninstall. Delete the egg file (or, to be on the safe side, move it to a different directory).

  2. uninstall opencv-python package installed by using pip in anaconda

    You should able to see the egg file that corresponds to the package you want to uninstall. Delete the egg file (or, to be on the safe side, move it to a different directory).

Method 1

  1. Go to directory where pip is installing your packages.
  2. You should able to see the egg file that corresponds to the package you want to uninstall. Delete the egg file (or, to be on the safe side, move it to a different directory).
  3. Do the same with the package files for the package you want to delete for (opencv-python)

Method 2

To uninstall I used this line of code and it worked,

    sudo pip uninstall opencv-python

Resulted as given:

Uninstalling opencv-python-4.0.0.21:   Would remove:

    c:\program files\anaconda3\lib\site-packages\cv2\*
    c:\program files\anaconda3\lib\site-packages\opencv_python-4.0.0.21.dist-info\* Proceed (y/n)? y   Successfully uninstalled opencv-python-4.0.0.21

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read