1.matplotlib是否安装?
1.1在终端,先输入python
import matplotlib
不报错就是已经安装。
1.2root@xgj-PC:~# python
Python 2.7.13 (default, Sep 26 2018, 18:42:22)
[GCC 6.3.0 20170516] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import matplotlib
>>>
1.3root@xgj-PC:~# python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import matplotlib
>>>
1.4root@xgj-PC:~# python3.7
Python 3.7.3 (default, Oct 28 2019, 22:23:33)
[GCC 6.3.0 20170516] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import matplotlib
Traceback (most recent call last):
File “”, line 1, in