Article Directory
foreword
When using Docker to build a deep learning environment, such an error occurs after installing opencv-python, so I am looking for a solution.
1. Basic concepts
Try installing opencv-python-headless instead of opencv-python, which is suitable for headless systems such as Docker.
2. Operation steps
pip install opencv-python-headless
opencv-python: This repository contains only the main modules of the OpenCV library.
opencv-contrib-python: The opencv-contrib-python library contains main modules and contrib modules.
opencv-python-headless: Same as opencv-python but without GUI functionality. Suitable for interfaceless systems.
opencv-contrib-python-headless: Same as opencv-contrib-python, but without GUI functionality. Suitable for interfaceless systems.
Summarize
This article introduces how to solve such errors after installing opencv-python when using Docker to build a deep learning environment.