import matplotlib.pyplot as plt, ImportError: libGL.so.1: cannot open shared object file: No such file or directory

后端 未结 3 911
栀梦
栀梦 2020-12-31 20:32

import matplotlib.pyplot as plt is erroring with python2.7, anaconda3.

The error is ImportError: libGL.so.1: cannot open shared object file: No su

3条回答
  •  感动是毒
    2020-12-31 21:20

    Below commands worked for me:

    sudo apt update
    sudo apt install libgl1-mesa-glx
    

提交回复
热议问题