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

2024/10/10 18:24:11

I have tried to install OpenCV in anaconda. but when I use it, I figure out the instead of using OpenCV, the program using OpenCV-python and that why my program crashed. I type "conda uninstall opencv" but it just uninstalls OpenCV package not OpenCV-python. I also use " conda uninstall opencv-python" and "pip uninstall opencv-python" but it's not work.

enter image description here

Answer

@Lê Huy Hùng

Please check official documentations before posting a question like this.

Here's the official documentation of pip uninstall

Here's how I uninstalled it

pip uninstall opencv-python

Uninstalling opencv-python-3.4.0.12:
/Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtCore /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtGui /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/QtTest /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libavcodec.57.107.100.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libavformat.57.83.100.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libavresample.3.7.0.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libavutil.55.78.100.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libmp3lame.0.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libswresample.2.9.100.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/.dylibs/libswscale.4.8.100.dylib /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/LICENSE-3RD-PARTY.txt /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/LICENSE.txt /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/init.py /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/pycache/init.cpython-35.pyc /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/cv2.cpython-35m-darwin.so /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/init.py /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/pycache/init.cpython-35.pyc /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_eye.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_eye_tree_eyeglasses.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalcatface.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalcatface_extended.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalface_alt.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalface_alt2.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalface_alt_tree.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_frontalface_default.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_fullbody.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_lefteye_2splits.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_licence_plate_rus_16stages.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_lowerbody.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_profileface.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_righteye_2splits.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_russian_plate_number.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_smile.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/cv2/data/haarcascade_upperbody.xml /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/DESCRIPTION.rst /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/INSTALLER /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/METADATA /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/RECORD /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/WHEEL /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/metadata.json /Users/name/.virtualenvs/LT/lib/python3.5/site-packages/opencv_python-3.4.0.12.dist-info/top_level.txt Proceed (y/n)? y
Successfully uninstalled opencv-python-3.4.0.12

https://en.xdnf.cn/q/69862.html

Related Q&A

flask many to many join as done by prefetch_related from django

I have following Group and Contact model in flask with Sql Alchemy ORMgroup_contact = db.Table(group_contact,db.Column(group_id, db.Integer, db.ForeignKey(group.id)),db.Column(contact_id, db.Integer, d…

Django model inheritance - only want instances of parent class in a query

Lets say I have 2 models, one being the parent of another. How can I query all Places that arent restaurants in Django? Place.objects.all() would include all restaurants right? I want to exclude the …

Perfom python unit tests via a web interface

Is it possible to perform unittest tests via a web interface...and if so how?EDIT: For now I want the results...for the tests I want them to be automated...possibly every time I make a change to the …

Limit on number of HDF5 Datasets

Using h5py to create a hdf5-file with many datasets, I encounter a massive Speed drop after ca. 2,88 mio datasets. What is the reason for this?I assume that the limit of the tree structure for the dat…

Object level cascading permission in Django

Projects such as Django-guardian and django-permissions enables you to have object level permissions. However, if two objects are related to each other by a parent-child relationship, is there any way …

How do I find out eigenvectors corresponding to a particular eigenvalue of a matrix?

How do I find out eigenvectors corresponding to a particular eigenvalue? I have a stochastic matrix(P), one of the eigenvalues of which is 1. I need to find the eigenvector corresponding to the eigen…

How to install my custom Python package with its custom dependencies?

I would like to find a way to install my own python package which depends on other custom python packages. I followed this guide to create my own python packages: https://python-packaging.readthedocs.i…

How to call a function only Once in Python [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.Want to improve this question? Add details and clarify the problem by editing this post.Closed 8 years ago.The com…

Generating Compound Pie, or Pie of Pie Charts

Below is an example of a compound pie chart, also known as a pie of pie chart drawn using Excel. Is it possible to create a figure like this using python?

GitPython : git push - set upstream

Im using GitPython to clone a master branch and do a checkout of a feature branch, I do my local updates, commit and push back to git. The code snippet looks like below, Note : my branch name is featur…