PIP opencv-python directly into docker:
pip install opencv-python
When importing cv2 again, an error will be returned:
ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory
>
>
>
>
>
>
>
>
pip uninstall opencv-python
To install it, use the following command:
pip install opencv-python-headless
【 reference 】
https://blog.csdn.net/Max_ZhangJF/article/details/108920050 https://github.com/Korea-Health-Datathon/KHD2020/issues/78