ImportError: Python version mismatch: module was compiled for Python 3.6, but the interpreter version is incompatible: 3.7.6 (default, Jan 8 2020, 19:59:22)
问题:编译pse的Python和运行的的Python不一致
方案:改/pse/include/pybind11/detail/common.h文件113行
//#include <python3.6m/Python.h> //#include <python3.6m/frameobject.h> //#include <python3.6m/pythread.h> #include </export/anaconda3/include/python3.7m/Python.h> #include </export/anaconda3/include/python3.7m/frameobject.h> #include </export/anaconda3/include/python3.7m/pythread.h>