Fail to install in python >=3.12
Using pip install basemap, raise exception ModuleNotFoundError: No module named 'distutils.util'
Solved by pip install setuptools, then raise exception AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
Downgrade to python 3.10 to solve.
Can you checkout #611? If there are some issues I can include it in the PR
Based on this Stack Overflow issue, your problem appears to be the use of an outdated version of pip which contains symbols removed in Python 3.12, so I would expect that this is not a direct problem caused by basemap, but by your pip installation.
I would suggest that you try to upgrade pip and install basemap again. If this still does not work, please feel free to reopen the issue.