Description
root@MyPC:/usr/local/lib/python3.7/dist-packages# ls -lh|grep mat
drwxr-sr-x 13 root staff 4,0K mai 19 20:01 matplotlib
drwxr-sr-x 2 root staff 4,0K mai 19 20:01 matplotlib-3.1.0+832.gc4382b0b6-py3.7.egg-info
drwxr-sr-x 6 root staff 4,0K mai 19 20:04 matplotlib-3.1.0+832.gc4382b0b6-py3.7-linux-x86_64.egg
-rw-r--r-- 1 root staff 569 mai 19 20:01 matplotlib-3.1.0+832.gc4382b0b6-py3.7-nspkg.pth
root@MyPC:/usr/local/lib/python3.7/dist-packages# python3
Python 3.7.1 (default, Oct 22 2018, 11:21:55)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
from matplotlib import pyplot
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py", line 2310, in
switch_backend(rcParams["backend"])
File "/usr/local/lib/python3.7/dist-packages/matplotlib/init.py", line 810, in getitem
plt.switch_backend(rcsetup._auto_backend_sentinel)
File "/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py", line 212, in switch_backend
newbackend[9:] if newbackend.startswith("module://")
AttributeError: 'object' object has no attribute 'startswith'