我尝试在 中绘制一个简单的图表networkx
,但出现以下错误消息:
RuntimeError: module compiled against API version 6 but this version of numpy is 4
Traceback (most recent call last):
File "D:\project\awk\gg.py", line 2, in <module>
import matplotlib.pyplot as plt
File "D:\programs\python\lib\site-packages\matplotlib\pyplot.py", line 26, in <module>
from matplotlib.figure import Figure, figaspect
File "D:\programs\python\lib\site-packages\matplotlib\figure.py", line 24, in <module>
import matplotlib.artist as martist
File "D:\programs\python\lib\site-packages\matplotlib\artist.py", line 7, in <module>
from transforms import Bbox, IdentityTransform, TransformedBbox, \
File "D:\programs\python\lib\site-packages\matplotlib\transforms.py", line 35, in <module>
from matplotlib._path import (affine_transform, count_bboxes_overlapping_bbox,
ImportError: numpy.core.multiarray failed to import
我该如何解决这个问题?