ModuleNotFoundError: No module named 'cv2'
时间: 2023-10-13 22:19:59 浏览: 46
单项选择题-python使用pip安装报错modulenotfounderror: no module named ‘pkg_resources’的解决方法
This error message indicates that the Python module cv2 (OpenCV) is not installed on your system. You can install it using pip, the package installer for Python. Open your command prompt or terminal and enter the following command:
```
pip install opencv-python
```
This command will download and install the OpenCV module on your system. Once the installation is complete, you can import cv2 in your Python code without encountering the ModuleNotFoundError.
阅读全文