开发者社区> 问答> 正文

import matplotlib.pyplot as plt出现了错误

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

展开
收起
middle_xu 2018-04-12 01:29:25 6775 0
0 条回答
写回答
取消 提交回答
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载