Error when installing petsc4py, "use of undeclared identifier 'MATDAAD' "
Hello, I encountered a problem when installing petsc4py using pip. The output info is as follows:
In file included from src/PETSc.c:4: src/petsc4py.PETSc.c:330930:43: error: use of undeclared identifier 'MATDAAD' __pyx_t_7 = _pyx_f_8petsc4py_5PETSc_S(MATDAAD); if (unlikely(!__pyx_t_7)) __PYX_ERR(38, 49, __pyx_L1_error)
How can I solve this?
Thanks a lot!