basemap icon indicating copy to clipboard operation
basemap copied to clipboard

Fail to install in python >=3.12

Open Water-Run opened this issue 2 years ago • 2 comments

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.

Water-Run avatar Nov 13 '24 07:11 Water-Run

Can you checkout #611? If there are some issues I can include it in the PR

cvanelteren avatar Jan 24 '25 12:01 cvanelteren

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.

molinav avatar Feb 24 '25 08:02 molinav