See https://github.com/pyscf/pyscf/issues/1855
See pyscf/pyscf#1855