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 basemap in Win11 with the newest python 3.11 #561

Closed
Fox-0124 opened this issue Oct 29, 2022 · 6 comments
Closed

fail to install basemap in Win11 with the newest python 3.11 #561

Fox-0124 opened this issue Oct 29, 2022 · 6 comments

Comments

@Fox-0124
Copy link

When I install basemap with 'pip install basemap' or 'python -m pip install basemap', an error occurs:
image

No other python versions exist in my computer.

@molinav
Copy link
Member

molinav commented Oct 29, 2022

Hi @Fox-0124! Python 3.11 is relatively new, right? You are being caught by the upper pin "<3.11" in the setup.py file. Very likely it will be enough if I increase this upper pin and rebuild the wheels also for Python 3.11.

@molinav
Copy link
Member

molinav commented Oct 29, 2022

I was checking a bit further and actually basemap pins to <4 as upper bound. The <3.11 upper bound issue is coming from the build requirement numpy==1.21.4, because the numpy versions 1.21.2 to 1.21.6 added this upper bound (not present in numpy 1.20.x, 1.22.x or 1.23.x, for example).

@molinav
Copy link
Member

molinav commented Oct 31, 2022

@Fox-0124 In the end, adding the Python 3.11 support had a bit more work than expected, but the core functionality is merged into the hotfix-1.3.6 branch. Currently, I am about to merge another Windows-related bugfix into hotfix-1.3.6.

When this is done, may I ask you to try out the first "pre-official" Python 3.11 wheel? Are you using Windows with Python 64-bit?

Once this issue can be closed, the hotfix-1.3.6 branch will be finished and I will tag a new basemap hotfix release (1.3.6).

@molinav
Copy link
Member

molinav commented Oct 31, 2022

I attach you here the hotfix candidate for Windows Python 64-bit:
basemap-1.3.6-cp311-cp311-win_amd64.zip

You need to change the .zip extension with .whl, otherwise I could not attach the file in the message. I made some basic tests in my computer and it seems to work. Any feedback is appreciated, I will probably release by end of the day.

@Fox-0124
Copy link
Author

Fox-0124 commented Nov 1, 2022

Dear @molinav , many thanks for your work. Now I success to install basemap in my computer.

@molinav
Copy link
Member

molinav commented Nov 1, 2022

Great to hear that! Then I will close this issue as completed.

@molinav molinav closed this as completed Nov 1, 2022
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

2 participants