复现
import matplotlib.pyplot as plt
import pandas as pd
报错
module functions cannot set METH_CLASS or METH_STATIC
解决
交换导入顺序
import pandas as pd
import matplotlib.pyplot as plt
参考
ValueError: module functions cannot set METH_CLASS or METH_STATIC · Issue #23040 · pandas-dev/pandas