Pycharm fails to install cv2 third-party library

Error interface (2 cases)

1: Enter in the Terminal interface: pip install cv2, error: Could not find a version that satisfies the requirement cv2 (from versions: )
No matching distribution found for cv2

 2: Look for the cv2 library installation at the Project Interpreter, and report an error: Non-zero exit code (2)

 Solution:

        Check the information on Baidu, there is no cv2 library, what actually needs to be installed is a library called opencv-python.

        Enter directly on the Terminal interface: pip install opencv-python to install.

Guess you like

Origin blog.csdn.net/m0_56337927/article/details/129431139