开发者社区> 问答> 正文

import matplotlib.pyplot as plt出现了错误

middle_xu 2018-04-12 01:29:25 2648

Python 3.6.4 |Anaconda, Inc.| (default, Jan 16 2018, 18:10:19)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import matplotlib.pyplot as plt
Traceback (most recent call last):

File "", line 1, in
File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py", line 116, in

_backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/__init__.py", line 60, in pylab_setup

[backend_name], 0)

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5agg.py", line 16, in

from .backend_qt5 import (

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/backend_qt5.py", line 18, in

import matplotlib.backends.qt_editor.figureoptions as figureoptions

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/figureoptions.py", line 20, in

import matplotlib.backends.qt_editor.formlayout as formlayout

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_editor/formlayout.py", line 56, in

from matplotlib.backends.qt_compat import QtGui, QtWidgets, QtCore

File "/root/anaconda3/lib/python3.6/site-packages/matplotlib/backends/qt_compat.py", line 137, in

from PyQt5 import QtCore, QtGui, QtWidgets

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Linux C语言 Python
分享到
取消 提交回答
全部回答(0)

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题