'How to instal python basemap on MacOS?

For the past 5 hours, I have been trying to install basemap module on my laptop. I have tried various methods and apparently they do not work. Firstly I have tried the one that was posted on stackoverflow 5 years ago using brew, but when you download zip file, it does not contain installer(that what terminal says). I was trying to install it directly from the terminal, also did not work. Official documentation on the installation of the package (https://matplotlib.org/basemap/users/installing.html) is complicated and I could not understand the steps. Can someone please tell me how to install it on MacOS?

P.S. I am working in the jupyter and currently trying to install the package using Anaconda



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source