Traceback (most recent call last):
File ".\matplotlib222.py", line 1, in <module>
import matplotlib.pyplot as plt
File "D:\Program Files (x86)\python\lib\site-packages\matplotlib\__init__.py", line 107, in <module>
from . import cbook, rcsetup
File "D:\Program Files (x86)\python\lib\site-packages\matplotlib\rcsetup.py", line 28, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "D:\Program Files (x86)\python\lib\site-packages\matplotli
pyparsing库版本有问题
可以用 pip list 查看pyparsing版本
可以更换为其他版本,我更换版本为:2.4.7
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyparsing==2.4.7
重新运行不报错了