ubuntu opencv报错 ImportError: libGL.so.1: cannot open shared object file: No such file or directory

  • 先把之前用上面命令安装的opencv删除,使用这条命令:
pip uninstall opencv-python
  • 然后用这条命令安装:
pip install opencv-python-headless

你可能感兴趣的:(opencv,python,人工智能)