Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to install in python >=3.12 #609

Closed
Water-Run opened this issue Nov 13, 2024 · 2 comments
Closed

Fail to install in python >=3.12 #609

Water-Run opened this issue Nov 13, 2024 · 2 comments

Comments

@Water-Run
Copy link

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.

@cvanelteren
Copy link
Contributor

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

@molinav
Copy link
Member

molinav commented Feb 24, 2025

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 molinav closed this as completed Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants