![]() #Install matplotlib with homebrew install#Turned out I need to use an earlier version of pyproj, so I simply ran pip install pyproj=1.9. Followed what thegsi had said, but then I still had this error AttributeError: 'module' object has no attribute 'pyproj_datadir' I’m using High Sierra with Python 2.7 installed with homebrew. Thought someone might find this handy since I needed hours to get basemap working. Not sure if it’ll help anyone else, but after an hour of flailing and trying different things, it got me up and running where trying to install from GitHub (which would build, but not install, a wheel for Basemap) and directly compiling wouldn’t. #Install matplotlib with homebrew archive#I wound up needing to install with $ pip3 install /path/to/ -userĪfter downloading the latest release archive from the releases page. Got all the dependencies installed but Basemap itself was giving me trouble. ![]() I had trouble installing Basemap on macOS Catalina. I then used pip to install matplotlib pip install matplotlib=2.2 (3+ wouldn’t work).īig thank you to the kind person who wrote those instructions. Imported Basemap in a python script (via a tutorial elsewhere) with import mpl_toolkits.basemap as bm, and was able to confirm it worked with a produced map.Īfter trying for a long time I managed to make basemap-1.1.0 install on High Sierra. bash_profile, and then reloaded it via: source ~/.bash_profileįrom within untarred Basemap directory: python setup.py install This is a full list of what I did: brew install matplotlibĭownloaded Basemap 1.0.7 source tar file ( ), untarred it.Īdded export GEOS_DIR=/usr/local/Cellar/geos/3.5.0/ to a new line in my. bash_profile after modifying it? source ~/.bash_profile. Python’s virtual environments are kind of separate boxes, where you can install modules and packages locally. ![]() Homebrew installs a new version of python (by default the latest 2.x version available) and set is as default. I’m not 100% certain this matters, but did you reload your. The easiest way to safely install python on a MAC is homebrew.The version can be verified by looking in your /usr/local/Cellar/geos/ directory to see which one is installed. As of yesterday, the version I wound up using was 3.5.0, so my path looked like this: export GEOS_DIR=/usr/local/Cellar/geos/3.5.0/. bash_profile? Some of the examples I’ve seen around the web use a specific version, so there’s always a chance for a copy/paste error. Are you certain the correct version of geos was used when modifying your.In your notes, you listed brew install gets, though I assume it was a typo and you actually meant & used brew install geos when installing.I was able to install Basemap fine on Sierra (also using Homebrew for its dependencies), following the instructions here: Ī couple notes, just to make sure nothing is being overlooked: ![]() On 10.14 Mojave today I did: brew install geosĪnd it seems to work (mine is Python 3.6 from with matplotlib installed by pip). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |