import cv2

I saw a piece of opencv code that runs in a python environment. My python environment (anaconda - jupyter notebook) is a newly installed blank environment without opencv packages. How to install an opencv package with anaconda?
He used import cv2, I don’t know which package should be installed by import cv2
I am not very good at using the anaconda command line, so open the anaconda navigator, search for opencv in the base environment, select all on the left, and then three packages come out: libopencv, opencv, py-opencv.
I think opencv looks more reliable, so I clicked a tick, apply.
Then it has been stuck (twenty minutes), saying solving package specification.
I searched for this error message online and tried to find a solution, but none of the csdn methods seemed very reliable. I don't want to use an article with 20 comments that said it was useful, because that article found a file in a corner and replaced the code for querying the version with a fixed version. Damn, how do I know if my version is the one he provided? Definitely not, my anaconda is just updated, it must be different from his, follow his method, what should I do if something goes wrong? I see that so many people have no problems using it, so I shouldn't have any problems, but this operation is too cornered, right? Isn't anaconda famous for its convenience? Why is it stuck at such a conspicuous step as the solving package specification? Don't I have a ladder? I am equivalent to a foreigner. Will foreigners encounter these B problems when using anaconda? Fuck, no, because I can't find solutions to these problems online. I don't like such a simple software with such a corner solution, and I still don't understand his principle, how can I accept it!

I opened the command line of conda, created a new environment called opencv, and tested the opencv code of python in it.
I typed conda install opencv-python, because I checked Baidu to install this package name (if python runs opencv), but it reported an error, I just added 3 Tsinghua sources, and I still have a ladder, why the fuck did I report an error, as if I couldn’t find anything, let me find another source. I fuck you! Will anaconda not be able to install such a large library as opencv? You fucking B! I chose python3.9, there is a problem! ? fuck you B

I remember that when I switched to pip install opencv-python, it stopped working halfway down. fucking B! I'm using shadowsock, isn't it a great ladder! Why don't you fucking move! I fuck you!

Then I changed to conda install opencv.
Fucking success! Hold! Why! Don't you fucking have the package name opencv (in the navigator)! Hold! What is going on in this world! Why can't I find the information I need!

Can someone help me! I have no friends either! damn it!

I am not a computer professional! I'm just an electronics undergrad! Ordinary undergraduate! Not one!

Hold

Guess you like

Origin blog.csdn.net/bdaple/article/details/130654133