Problem :
The import matplotlib.pyplot as plt is is giving me the error with python2.7, anaconda3.
The error shown is as below:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
The Detailed Error report is as below :
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/pyplot.py", line 124, in <module>_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup() File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/__init__.py", line 42, in pylab_setup globals(),locals(),[backend_name],0) File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/backend_qt5agg.py", line 18, in <module> from .backend_qt5 import QtCore File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/backend_qt5.py", line 36, in <module> import matplotlib.backends.qt_editor.figureoptions as figureoptions File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 30, in <module>
import matplotlib.backends.qt_editor.formlayout as formlayout
File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 70, in <module>
from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore
File "/serving/anaconda3/envs/python27/lib/python2.7/site-packages/matplotlib/backends/qt_compat.py", line 154, in <module>
from PyQt5 import QtCore, QtGui, QtWidgets
ImportError: libGL.so.1: cannot open shared object file: No such file or directory