在使用C++调用python的Matplotlib.h库,并使用plot进行绘图时报错Fatal Python error: the function must be called with the GIL held, after Python initialization and before Python finalization, but the GIL is released (the current Python thread state is NULL),在经过多次尝试后没发现是安装的python的版本的问题,我安装的是最新的版本python3.12.4,后来尝试安装python3.8.5,最终解决了该问题