原因:由于容器内部的问题所引起的
方法1:需要更新apt,安装libgl1-mesa-glx
apt update
apt install libgl1-mesa-glx
方法2:
pip uninstall opencv-python -y
pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple
原因:由于容器内部的问题所引起的
方法1:需要更新apt,安装libgl1-mesa-glx
apt update
apt install libgl1-mesa-glx
方法2:
pip uninstall opencv-python -y
pip install opencv-python-headless -i https://pypi.tuna.tsinghua.edu.cn/simple